You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(taskbar): Fix UWP icons and add title label configuration options
- Introduced a new `title_label` setting in the taskbar widget.
- Allows enabling/disabling title labels and configuring their display behavior.
- Fixed UWP icons to ensure they are displayed correctly in the taskbar.
|`callbacks`| dict |`{'on_left': 'toggle_window', 'on_middle': 'do_nothing', 'on_right': 'do_nothing'}`| Callbacks for mouse events on the widget. |
9
10
|`animation`| dict |`{'enabled': True, 'type': 'fadeInOut', 'duration': 200}`| Animation settings for the widget. |
@@ -19,6 +20,11 @@ taskbar:
19
20
enabled: true
20
21
duration: 200
21
22
type: "fadeInOut"
23
+
title_label:
24
+
enabled: false
25
+
show: "focused"
26
+
min_length: 10
27
+
max_length: 30
22
28
ignore_apps:
23
29
processes: []
24
30
titles: []
@@ -34,6 +40,11 @@ taskbar:
34
40
35
41
- **icon_size:** The size of icons which will show in the widget.
36
42
- **tooltip:** Whether to show the tooltip on hover.
43
+
- **title_label:** A dictionary specifying the configuration for window title labels. It includes:
44
+
- enabled: A boolean flag to enable or disable title labels.
45
+
- show: A string that determines the display behavior (either "focused" or "always").
46
+
- min_length: The minimum length of the title label.
47
+
- max_length: The maximum length of the title label.
37
48
- **container_padding:** Explicitly set padding inside widget container.
38
49
- **ignore_apps:** A dictionary that allows you to specify which applications should be ignored by the taskbar widget. It includes:
39
50
- processes: A list of process names to ignore.
@@ -54,7 +65,10 @@ taskbar:
54
65
.taskbar-widget .app-icon.foreground{
55
66
background-color: rgba(0, 0, 0, 0.4);
56
67
}
68
+
/* if title_label is enabled: */
69
+
.taskbar-widget .app-title {}
70
+
.taskbar-widget .app-title.foreground {}
57
71
```
58
72
59
73
> [!IMPORTANT]
60
-
> Taskbar apps will work only if they are minimized so that YASB can restore them on click; if you close the app to go in the system tray, YASB can't work in that way.
74
+
> The title label is disabled by default. If you decide to enable it, keep in mind that it may result in slightly higher CPU usage.
0 commit comments