mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51:54 +05:30
style: add style for time and tray widget
This commit is contained in:
38
style.scss
38
style.scss
@@ -16,16 +16,14 @@ window.Bar {
|
||||
padding: 10px;
|
||||
|
||||
.launcher {
|
||||
button {
|
||||
background-color: $inactive-color;
|
||||
border-radius: $rounded;
|
||||
transition: all 0.15s ease-out;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
background-color: $inactive-color;
|
||||
border-radius: $rounded;
|
||||
transition: all 0.15s ease-out;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
|
||||
&:hover {
|
||||
background-color: $bg-color;
|
||||
}
|
||||
&:hover {
|
||||
background-color: $bg-color;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +75,16 @@ window.Bar {
|
||||
color: $bg-color;
|
||||
background-color: $inactive-color;
|
||||
border-radius: $rounded;
|
||||
padding: 10px;
|
||||
padding: 0px 10px;
|
||||
}
|
||||
|
||||
.tray {
|
||||
font-size: $font-size;
|
||||
font-weight: 900;
|
||||
color: #fff;
|
||||
background-color: $inactive-color;
|
||||
border-radius: $rounded;
|
||||
padding: 0px 10px;
|
||||
}
|
||||
|
||||
.battery {
|
||||
@@ -86,7 +93,16 @@ window.Bar {
|
||||
color: $bg-color;
|
||||
background-color: $inactive-color;
|
||||
border-radius: $rounded;
|
||||
padding: 10px;
|
||||
padding: 0px 10px;
|
||||
}
|
||||
|
||||
.time {
|
||||
font-size: $font-size;
|
||||
font-weight: 900;
|
||||
color: $bg-color;
|
||||
background-color: $inactive-color;
|
||||
border-radius: $rounded;
|
||||
padding: 0px 10px;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -5,12 +5,11 @@ import { WINDOW_NAME } from "../app-launcher";
|
||||
|
||||
export const Launcher = () => {
|
||||
return (
|
||||
<Gtk.ScrolledWindow
|
||||
heightRequest={40}
|
||||
widthRequest={40}
|
||||
cssClasses={["launcher"]}
|
||||
>
|
||||
<button onClicked={() => App.toggle_window(WINDOW_NAME)}>
|
||||
<Gtk.ScrolledWindow heightRequest={40} widthRequest={40}>
|
||||
<button
|
||||
cssClasses={["launcher"]}
|
||||
onClicked={() => App.toggle_window(WINDOW_NAME)}
|
||||
>
|
||||
<Picture
|
||||
file={Gio.file_new_for_path("/home/tux/Wallpapers/avatar.png")}
|
||||
contentFit={Gtk.ContentFit.CONTAIN}
|
||||
|
Reference in New Issue
Block a user