Fixed Postion of macos-player-switcher-dot
This commit is contained in:
1 parent
8c56d9b236
commit
aec638ef6a
5 files changed
+17
-17
No files matched your search
@@ -684,9 +684,9 @@ class PlayerBox(Box):
|
|||||||
v_expand=True,
|
v_expand=True,
|
||||||
name="macos-stack-buttons-box",
|
name="macos-stack-buttons-box",
|
||||||
spacing=4, # Reduced spacing
|
spacing=4, # Reduced spacing
|
||||||
orientation="v", # Vertical layout for compactness
|
orientation="h", # Vertical layout for compactness
|
||||||
h_align="end",
|
h_align="center",
|
||||||
v_align="center",
|
v_align="end",
|
||||||
)
|
)
|
||||||
self.stack_buttons_box.hide() # Initially hidden
|
self.stack_buttons_box.hide() # Initially hidden
|
||||||
|
|
||||||
@@ -756,7 +756,7 @@ class PlayerBox(Box):
|
|||||||
# Compact macOS layout: album art on left, expanded track info+controls, minimal switcher
|
# Compact macOS layout: album art on left, expanded track info+controls, minimal switcher
|
||||||
self.outer_box = Box(
|
self.outer_box = Box(
|
||||||
name="macos-outer-player-box",
|
name="macos-outer-player-box",
|
||||||
orientation="h",
|
orientation="v",
|
||||||
spacing=10, # Reduced spacing between elements
|
spacing=10, # Reduced spacing between elements
|
||||||
h_expand=True,
|
h_expand=True,
|
||||||
v_expand=True,
|
v_expand=True,
|
||||||
|
|||||||
@@ -313,9 +313,7 @@ class ModusControlCenter(Window):
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Label(
|
Label(label=" ", name="volume-widget-icon", h_align="start"),
|
||||||
label=" ", name="brightness-widget-icon", h_align="start"
|
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
Box(
|
Box(
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ from fabric.widgets.overlay import Overlay
|
|||||||
from fabric.widgets.stack import Stack
|
from fabric.widgets.stack import Stack
|
||||||
from fabric.widgets.svg import Svg
|
from fabric.widgets.svg import Svg
|
||||||
from gi.repository import GLib, GObject
|
from gi.repository import GLib, GObject
|
||||||
|
from fabric.widgets.centerbox import CenterBox
|
||||||
from loguru import logger
|
from loguru import logger
|
||||||
|
|
||||||
from services.mpris import MprisPlayer, MprisPlayerManager
|
from services.mpris import MprisPlayer, MprisPlayerManager
|
||||||
@@ -187,13 +188,12 @@ class PlayerBoxStack(Box):
|
|||||||
children=[track_info, controls_box],
|
children=[track_info, controls_box],
|
||||||
)
|
)
|
||||||
|
|
||||||
inner_box = Box(
|
inner_box = CenterBox(
|
||||||
name="inner-player-box",
|
name="inner-player-box",
|
||||||
h_expand=True,
|
start_children=[
|
||||||
v_align="center",
|
|
||||||
h_align="start",
|
|
||||||
children=[
|
|
||||||
image_stack,
|
image_stack,
|
||||||
|
],
|
||||||
|
center_children=[
|
||||||
player_info_box,
|
player_info_box,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -269,14 +269,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#volume-widget-icon {
|
#volume-widget-icon {
|
||||||
margin-top: -24px;
|
font-size: 22px;
|
||||||
margin-right: -30px;
|
margin-top: -26px;
|
||||||
color: #999;
|
margin-right: -36px;
|
||||||
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
#brightness-widget-icon {
|
#brightness-widget-icon {
|
||||||
|
font-size: 15px;
|
||||||
margin-top: -27px;
|
margin-top: -27px;
|
||||||
margin-right: -28px;
|
margin-right: -29px;
|
||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@
|
|||||||
}
|
}
|
||||||
#outer-no-player-box-c {
|
#outer-no-player-box-c {
|
||||||
min-height: 55px;
|
min-height: 55px;
|
||||||
min-width: 280px;
|
min-width: 310px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
/* margin: 0 6px; */
|
/* margin: 0 6px; */
|
||||||
/* background-color: alpha(#000, 0.3); */
|
/* background-color: alpha(#000, 0.3); */
|
||||||
|
|||||||
Reference in new issue
Block a user