feat(bar): add applications widget

This pull request introduces a new Applications widget that displays a
user-defined list of application launchers in the UI. Each app entry
supports an icon, a label, and executes its configured command on click.

The design of this widget is inspired by the Applications Widget of YASB
Reborn. I personally missed this functionality and aimed to bring a
similar experience to komorebi-bar.

Further information is in the text of PR #1415
This commit is contained in:
Alisher Galiev
2025-04-21 09:17:25 +05:00
committed by LGUG2Z
parent 6e7d8fb922
commit 10424b696f
5 changed files with 688 additions and 1 deletions
+1 -1
View File
@@ -670,7 +670,7 @@ impl BarWidget for Komorebi {
}
}
fn img_to_texture(ctx: &Context, rgba_image: &RgbaImage) -> TextureHandle {
pub(super) fn img_to_texture(ctx: &Context, rgba_image: &RgbaImage) -> TextureHandle {
let size = [rgba_image.width() as usize, rgba_image.height() as usize];
let pixels = rgba_image.as_flat_samples();
let color_image = ColorImage::from_rgba_unmultiplied(size, pixels.as_slice());