QuickFix
This commit is contained in:
1 parent
163232ac34
commit
331a704243
2 files changed
+40
-20
No files matched your search
@@ -273,19 +273,21 @@ class ModusControlCenter(Window):
|
|||||||
style_classes="menu",
|
style_classes="menu",
|
||||||
h_expand=True,
|
h_expand=True,
|
||||||
children=[
|
children=[
|
||||||
Button(
|
Label(label="Sound", style_classes="title", h_align="start"),
|
||||||
name="volume-widget-button",
|
Box(
|
||||||
child=Box(
|
orientation="horizontal",
|
||||||
orientation="vertical",
|
spacing=8,
|
||||||
children=[
|
children=[
|
||||||
Label(label="Sound", style_classes="title", h_align="start"),
|
self.volume_scale,
|
||||||
self.volume_scale,
|
Button(
|
||||||
Label(
|
name="per-app-volume-button",
|
||||||
label=" ", name="brightness-widget-icon", h_align="start"
|
child=Label(label="⚙", name="per-app-volume-icon"),
|
||||||
),
|
on_clicked=self.open_per_app_volume,
|
||||||
]
|
),
|
||||||
),
|
]
|
||||||
on_clicked=self.open_per_app_volume,
|
),
|
||||||
|
Label(
|
||||||
|
label=" ", name="brightness-widget-icon", h_align="start"
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -467,14 +467,32 @@
|
|||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#volume-widget-button {
|
/* Circle button for per-app volume */
|
||||||
background-color: transparent;
|
#per-app-volume-button {
|
||||||
border: none;
|
background-color: alpha(#fff, 0.15);
|
||||||
|
border: 2px solid alpha(#007aff, 0.6);
|
||||||
|
border-radius: 50%;
|
||||||
|
min-width: 32px;
|
||||||
|
min-height: 32px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border-radius: 8px;
|
transition: all 0.2s ease;
|
||||||
transition: background-color 0.2s ease;
|
box-shadow: 0 2px 6px alpha(#000, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
#volume-widget-button:hover {
|
#per-app-volume-button:hover {
|
||||||
background-color: alpha(#fff, 0.05);
|
background-color: alpha(#fff, 0.25);
|
||||||
|
border-color: #007aff;
|
||||||
|
box-shadow: 0 4px 12px alpha(#000, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
#per-app-volume-button:active {
|
||||||
|
background-color: alpha(#fff, 0.2);
|
||||||
|
box-shadow: 0 1px 3px alpha(#000, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
#per-app-volume-icon {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #007aff;
|
||||||
|
text-shadow: none;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user