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
|`blur`| boolean |`true`| Enables a blur effect in the menu popup. |
30
+
|`round_corners`| boolean |`true`| If `true`, the menu has rounded corners. |
31
+
|`round_corners_type`| string |`"normal"`| Determines the corner style; allowed values are `normal` and `small`. |
32
+
|`border_color`| string |`"system"`| Sets the border color for the menu. Can be `"system"`, `None` or HEX color. |
33
+
|`alignment`| string |`"right"`| Horizontal alignment of the menu relative to the widget (`left`, `right`, `center`). |
34
+
|`direction`| string |`"down"`| Direction in which the menu opens (`down` or `up`). |
35
+
|`offset_top`| integer |`6`| Vertical offset for fine positioning of the menu. |
36
+
|`offset_left`| integer |`0`| Horizontal offset for fine positioning of the menu. |
37
+
|`layout_icon`| string |`"\uf11c"`| Icon displayed next to layout names in the menu. |
38
+
|`show_layout_icon`| boolean |`true`| Whether to show the layout icon next to each language entry. |
14
39
40
+
## Example Configuration
15
41
```yaml
16
42
language:
17
43
type: "yasb.language.LanguageWidget"
@@ -20,9 +46,20 @@ language:
20
46
label_alt: "{lang[full_name]}"
21
47
update_interval: 5
22
48
callbacks:
23
-
on_left: "toggle_label"
49
+
on_left: "toggle_menu"
24
50
on_middle: "do_nothing"
25
-
on_right: "do_nothing"
51
+
on_right: "toggle_label"
52
+
language_menu:
53
+
blur: true
54
+
round_corners: true
55
+
round_corners_type: "normal"
56
+
border_color: "system"
57
+
alignment: "right"
58
+
direction: "down"
59
+
offset_top: 6
60
+
offset_left: 0
61
+
show_layout_icon: true
62
+
layout_icon: "\uf11c"
26
63
label_shadow:
27
64
enabled: true
28
65
color: "black"
@@ -39,6 +76,7 @@ language:
39
76
- **container_padding**: Explicitly set padding inside widget container. Use this option to set padding inside the widget container. You can set padding for top, left, bottom and right sides of the widget container.
40
77
- **container_shadow:** Container shadow options.
41
78
- **label_shadow:** Label shadow options.
79
+
- **language_menu:** A dictionary containing options for the language selection menu. It includes options like `blur`, `round_corners`, `round_corners_type`, `border_color`, `alignment`, `direction`, `offset_top`, `offset_left`, `layout_icon`, and `show_layout_icon`.
0 commit comments