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
+7 -3
View File
@@ -62,12 +62,16 @@ export const QuickActions = () =>
<Gtk.Box halign={Gtk.Align.START} class={"left"} hexpand>
{userFace.query_exists(null) &&
<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.Label class={"hostname"} xalign={0} tooltipText={"Host name"}
label={GLib.get_host_name()} />
<Gtk.Box class={"user-host"}>
<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.Image iconName={"hourglass-symbolic"} />