|
49 | 49 | }; |
50 | 50 | }; |
51 | 51 |
|
52 | | - theme.font.name = font; |
53 | | - theme.font.size = fontSizeForHyprpanel; |
54 | | - |
55 | | - theme.bar.outer_spacing = |
56 | | - if floating && transparent then "8px" else "8px"; |
57 | | - theme.bar.buttons.y_margins = |
58 | | - if floating && transparent then "8px" else "8px"; |
59 | | - theme.bar.buttons.spacing = "0.3em"; |
60 | | - theme.bar.buttons.radius = |
61 | | - (if transparent then toString rounding else toString rounding) + "px"; |
62 | | - theme.bar.floating = floating; |
63 | | - theme.bar.buttons.padding_x = "0.8rem"; |
64 | | - theme.bar.buttons.padding_y = "0.4rem"; |
65 | | - |
66 | | - theme.bar.margin_top = |
67 | | - (if position == "top" then toString (gaps-in) else "0") + "px"; |
68 | | - theme.bar.margin_bottom = |
69 | | - (if position == "top" then "0" else toString (gaps-in)) + "px"; |
70 | | - theme.bar.margin_sides = toString gaps-out + "px"; |
71 | | - |
72 | | - theme.bar.border_radius = toString rounding + "px"; |
73 | | - theme.bar.transparent = transparent; |
74 | | - theme.bar.location = position; |
75 | | - theme.bar.dropdownGap = "4.5em"; |
76 | | - theme.bar.menus.shadow = |
77 | | - if transparent then "0 0 0 0" else "0px 0px 3px 1px #16161e"; |
78 | | - theme.bar.buttons.style = "default"; |
79 | | - theme.bar.buttons.monochrome = true; |
80 | | - theme.bar.menus.monochrome = true; |
81 | | - theme.bar.menus.card_radius = toString rounding + "px"; |
82 | | - theme.bar.menus.border.size = toString border-size + "px"; |
83 | | - theme.bar.menus.border.radius = toString rounding + "px"; |
84 | | - theme.bar.menus.menu.media.card.tint = 90; |
85 | | - |
86 | 52 | bar.launcher.icon = ""; |
87 | 53 | bar.workspaces.workspaces = 1; |
88 | 54 | bar.workspaces.numbered_active_indicator = "color"; |
|
107 | 73 |
|
108 | 74 | notifications.position = "top right"; |
109 | 75 | notifications.showActionsOnHover = true; |
110 | | - theme.notification.opacity = notificationOpacity; |
111 | | - theme.notification.enableShadow = true; |
112 | | - theme.notification.border_radius = toString rounding + "px"; |
113 | | - |
114 | | - theme.osd.enable = true; |
115 | | - theme.osd.orientation = "vertical"; |
116 | | - theme.osd.location = "left"; |
117 | | - theme.osd.radius = toString rounding + "px"; |
118 | | - theme.osd.margins = "0px 0px 0px 10px"; |
119 | | - theme.osd.muted_zero = true; |
120 | 76 |
|
121 | 77 | menus.clock.weather.location = location; |
122 | 78 | menus.clock.weather.unit = "metric"; |
@@ -174,68 +130,115 @@ in { |
174 | 130 |
|
175 | 131 | wallpaper.enable = false; |
176 | 132 |
|
177 | | - theme.bar.buttons.workspaces.hover = accent-alt; |
178 | | - theme.bar.buttons.workspaces.active = accent; |
179 | | - theme.bar.buttons.workspaces.available = accent-alt; |
180 | | - theme.bar.buttons.workspaces.occupied = accent-alt; |
181 | | - |
182 | | - theme.bar.menus.background = background; |
183 | | - theme.bar.menus.cards = background-alt; |
184 | | - theme.bar.menus.label = foreground; |
185 | | - theme.bar.menus.text = foreground; |
186 | | - theme.bar.menus.border.color = accent; |
187 | | - theme.bar.menus.popover.text = foreground; |
188 | | - theme.bar.menus.popover.background = background-alt; |
189 | | - theme.bar.menus.listitems.active = accent; |
190 | | - theme.bar.menus.icons.active = accent; |
191 | | - theme.bar.menus.switch.enabled = accent; |
192 | | - theme.bar.menus.check_radio_button.active = accent; |
193 | | - theme.bar.menus.buttons.default = accent; |
194 | | - theme.bar.menus.buttons.active = accent; |
195 | | - theme.bar.menus.iconbuttons.active = accent; |
196 | | - theme.bar.menus.progressbar.foreground = accent; |
197 | | - theme.bar.menus.slider.primary = accent; |
198 | | - theme.bar.menus.tooltip.background = background-alt; |
199 | | - theme.bar.menus.tooltip.text = foreground; |
200 | | - theme.bar.menus.dropdownmenu.background = background-alt; |
201 | | - theme.bar.menus.dropdownmenu.text = foreground; |
202 | | - |
203 | | - theme.bar.background = background |
204 | | - + (if transparentButtons && transparent then "00" else ""); |
205 | | - theme.bar.buttons.text = if transparent && transparentButtons then |
206 | | - foregroundOnWallpaper |
207 | | - else |
208 | | - foreground; |
209 | | - theme.bar.buttons.background = |
210 | | - (if transparent then background else background-alt) |
211 | | - + (if transparentButtons then "00" else ""); |
212 | | - theme.bar.buttons.icon = accent; |
213 | | - |
214 | | - theme.bar.buttons.notifications.background = background-alt; |
215 | | - theme.bar.buttons.hover = background; |
216 | | - theme.bar.buttons.notifications.hover = background; |
217 | | - theme.bar.buttons.notifications.total = accent; |
218 | | - theme.bar.buttons.notifications.icon = accent; |
219 | | - |
220 | | - theme.osd.bar_color = accent; |
221 | | - theme.osd.bar_overflow_color = accent-alt; |
222 | | - theme.osd.icon = background; |
223 | | - theme.osd.icon_container = accent; |
224 | | - theme.osd.label = accent; |
225 | | - theme.osd.bar_container = background-alt; |
226 | | - |
227 | | - theme.bar.menus.menu.media.background.color = background-alt; |
228 | | - theme.bar.menus.menu.media.card.color = background-alt; |
229 | | - |
230 | | - theme.notification.background = background-alt; |
231 | | - theme.notification.actions.background = accent; |
232 | | - theme.notification.actions.text = foreground; |
233 | | - theme.notification.label = accent; |
234 | | - theme.notification.border = background-alt; |
235 | | - theme.notification.text = foreground; |
236 | | - theme.notification.labelicon = accent; |
237 | | - theme.notification.close_button.background = background-alt; |
238 | | - theme.notification.close_button.label = "#f38ba8"; |
| 133 | + theme = lib.mkForce { |
| 134 | + |
| 135 | + font.name = font; |
| 136 | + font.size = fontSizeForHyprpanel; |
| 137 | + |
| 138 | + bar.outer_spacing = if floating && transparent then "8px" else "8px"; |
| 139 | + bar.buttons.y_margins = |
| 140 | + if floating && transparent then "8px" else "8px"; |
| 141 | + bar.buttons.spacing = "0.3em"; |
| 142 | + bar.buttons.radius = |
| 143 | + (if transparent then toString rounding else toString rounding) + "px"; |
| 144 | + bar.floating = floating; |
| 145 | + bar.buttons.padding_x = "0.8rem"; |
| 146 | + bar.buttons.padding_y = "0.4rem"; |
| 147 | + |
| 148 | + bar.margin_top = (if position == "top" then toString (gaps-in) else "0") |
| 149 | + + "px"; |
| 150 | + bar.margin_bottom = |
| 151 | + (if position == "top" then "0" else toString (gaps-in)) + "px"; |
| 152 | + bar.margin_sides = toString gaps-out + "px"; |
| 153 | + |
| 154 | + bar.border_radius = toString rounding + "px"; |
| 155 | + bar.transparent = transparent; |
| 156 | + bar.location = position; |
| 157 | + bar.dropdownGap = "4.5em"; |
| 158 | + bar.menus.shadow = |
| 159 | + if transparent then "0 0 0 0" else "0px 0px 3px 1px #16161e"; |
| 160 | + bar.buttons.style = "default"; |
| 161 | + bar.buttons.monochrome = true; |
| 162 | + bar.menus.monochrome = true; |
| 163 | + bar.menus.card_radius = toString rounding + "px"; |
| 164 | + bar.menus.border.size = toString border-size + "px"; |
| 165 | + bar.menus.border.radius = toString rounding + "px"; |
| 166 | + bar.menus.menu.media.card.tint = 90; |
| 167 | + |
| 168 | + notification.opacity = notificationOpacity; |
| 169 | + notification.enableShadow = true; |
| 170 | + notification.border_radius = toString rounding + "px"; |
| 171 | + |
| 172 | + osd.enable = true; |
| 173 | + osd.orientation = "vertical"; |
| 174 | + osd.location = "left"; |
| 175 | + osd.radius = toString rounding + "px"; |
| 176 | + osd.margins = "0px 0px 0px 10px"; |
| 177 | + osd.muted_zero = true; |
| 178 | + |
| 179 | + bar.buttons.workspaces.hover = accent-alt; |
| 180 | + bar.buttons.workspaces.active = accent; |
| 181 | + bar.buttons.workspaces.available = accent-alt; |
| 182 | + bar.buttons.workspaces.occupied = accent-alt; |
| 183 | + |
| 184 | + bar.menus.background = background; |
| 185 | + bar.menus.cards = background-alt; |
| 186 | + bar.menus.label = foreground; |
| 187 | + bar.menus.text = foreground; |
| 188 | + bar.menus.border.color = accent; |
| 189 | + bar.menus.popover.text = foreground; |
| 190 | + bar.menus.popover.background = background-alt; |
| 191 | + bar.menus.listitems.active = accent; |
| 192 | + bar.menus.icons.active = accent; |
| 193 | + bar.menus.switch.enabled = accent; |
| 194 | + bar.menus.check_radio_button.active = accent; |
| 195 | + bar.menus.buttons.default = accent; |
| 196 | + bar.menus.buttons.active = accent; |
| 197 | + bar.menus.iconbuttons.active = accent; |
| 198 | + bar.menus.progressbar.foreground = accent; |
| 199 | + bar.menus.slider.primary = accent; |
| 200 | + bar.menus.tooltip.background = background-alt; |
| 201 | + bar.menus.tooltip.text = foreground; |
| 202 | + bar.menus.dropdownmenu.background = background-alt; |
| 203 | + bar.menus.dropdownmenu.text = foreground; |
| 204 | + |
| 205 | + bar.background = background |
| 206 | + + (if transparentButtons && transparent then "00" else ""); |
| 207 | + bar.buttons.text = if transparent && transparentButtons then |
| 208 | + foregroundOnWallpaper |
| 209 | + else |
| 210 | + foreground; |
| 211 | + bar.buttons.background = |
| 212 | + (if transparent then background else background-alt) |
| 213 | + + (if transparentButtons then "00" else ""); |
| 214 | + bar.buttons.icon = accent; |
| 215 | + |
| 216 | + bar.buttons.notifications.background = background-alt; |
| 217 | + bar.buttons.hover = background; |
| 218 | + bar.buttons.notifications.hover = background; |
| 219 | + bar.buttons.notifications.total = accent; |
| 220 | + bar.buttons.notifications.icon = accent; |
| 221 | + |
| 222 | + osd.bar_color = accent; |
| 223 | + osd.bar_overflow_color = accent-alt; |
| 224 | + osd.icon = background; |
| 225 | + osd.icon_container = accent; |
| 226 | + osd.label = accent; |
| 227 | + osd.bar_container = background-alt; |
| 228 | + |
| 229 | + bar.menus.menu.media.background.color = background-alt; |
| 230 | + bar.menus.menu.media.card.color = background-alt; |
| 231 | + |
| 232 | + notification.background = background-alt; |
| 233 | + notification.actions.background = accent; |
| 234 | + notification.actions.text = foreground; |
| 235 | + notification.label = accent; |
| 236 | + notification.border = background-alt; |
| 237 | + notification.text = foreground; |
| 238 | + notification.labelicon = accent; |
| 239 | + notification.close_button.background = background-alt; |
| 240 | + notification.close_button.label = "#f38ba8"; |
| 241 | + }; |
239 | 242 | }; |
240 | 243 | }; |
241 | 244 | } |
0 commit comments