feat: add user face to control center if available

also improved quickactions hostname widget and removed unnecessary stylesheet
This commit is contained in:
retrozinndev
2025-08-17 22:01:54 -03:00
parent 39a052cc07
commit 74968ff17a
4 changed files with 27 additions and 70 deletions
-38
View File
@@ -35,44 +35,6 @@
} }
} }
& .player-select {
@include mixins.button-reactive-secondary;
border-radius: 14px;
& revealer label {
margin-left: 4px;
}
margin-right: 2px;
margin-bottom: 2px;
image.arrow {
-gtk-icon-size: 12px;
margin-left: 6px;
margin-top: 1px;
}
}
& popover contents {
background: colors.$bg-primary;
border-radius: 16px;
padding: 4px;
& button {
padding: 6px;
border-radius: 12px;
& image {
margin-right: 4px;
}
&:hover {
background: colors.$bg-secondary;
}
}
}
& slider { & slider {
all: unset; all: unset;
opacity: 0; opacity: 0;
+18 -1
View File
@@ -30,10 +30,27 @@
& .quickactions { & .quickactions {
margin-bottom: .8em; margin-bottom: .8em;
& .hostname { & .user-face {
background-position: center;
background-repeat: no-repeat;
background-size: cover;
min-height: 32px;
min-width: 34px;
margin-right: 6px;
border-radius: 50%;
}
& .user-host {
.user {
font-size: 15px; font-size: 15px;
font-weight: 600; font-weight: 600;
} }
.host {
color: colors.$fg-disabled;
font-size: 10px;
font-weight: 500;
}
}
& > box:not(.button-row) image { & > box:not(.button-row) image {
-gtk-icon-size: 12px; -gtk-icon-size: 12px;
-26
View File
@@ -1,26 +0,0 @@
// SCSS Variables
// Generated by 'wal'
$wallpaper: "/home/joaov/wallpapers/Anime Girl Drawing Sofa.jpg";
// Special
$background: #0e1721;
$foreground: #c2c5c7;
$cursor: #c2c5c7;
// Colors
$color0: #0e1721;
$color1: #393f39;
$color2: #4d4c46;
$color3: #824f36;
$color4: #6c574a;
$color5: #816956;
$color6: #4e767a;
$color7: #91959b;
$color8: #5d6772;
$color9: #4C544C;
$color10: #67665E;
$color11: #AE6A49;
$color12: #917463;
$color13: #AC8C73;
$color14: #689EA3;
$color15: #c2c5c7;
+7 -3
View File
@@ -62,12 +62,16 @@ export const QuickActions = () =>
<Gtk.Box halign={Gtk.Align.START} class={"left"} hexpand> <Gtk.Box halign={Gtk.Align.START} class={"left"} hexpand>
{userFace.query_exists(null) && {userFace.query_exists(null) &&
<Gtk.Box class={"user-face"} css={ <Gtk.Box class={"user-face"} css={
`background-image: url("${userFace.get_path()!}");`} `background-image: url("file://${userFace.get_path()!}");`}
/> />
} }
<Gtk.Box orientation={Gtk.Orientation.VERTICAL}> <Gtk.Box orientation={Gtk.Orientation.VERTICAL}>
<Gtk.Label class={"hostname"} xalign={0} tooltipText={"Host name"} <Gtk.Box class={"user-host"}>
label={GLib.get_host_name()} /> <Gtk.Label class={"user"} xalign={0}
label={GLib.get_user_name()} />
<Gtk.Label class={"host"} xalign={0} yalign={.8}
label={`@${GLib.get_host_name()}`} />
</Gtk.Box>
<Gtk.Box> <Gtk.Box>
<Gtk.Image iconName={"hourglass-symbolic"} /> <Gtk.Image iconName={"hourglass-symbolic"} />