refactor
This commit is contained in:
1 parent
ceda1adee3
commit
eaf3fed5c7
7 files changed
+73
-48
No files matched your search
+4
-36
@@ -1,4 +1,6 @@
|
|||||||
// https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/theme/Adwaita/_colors-public.scss
|
// https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/theme/Adwaita/_colors-public.scss
|
||||||
|
@use "./widget/modules/Media/Media.scss";
|
||||||
|
@use "./widget/modules/Powermenu/PowerMenu.scss";
|
||||||
$fg-color: #{"@theme_fg_color"};
|
$fg-color: #{"@theme_fg_color"};
|
||||||
$bg-color: #{"@theme_bg_color"};
|
$bg-color: #{"@theme_bg_color"};
|
||||||
|
|
||||||
@@ -121,41 +123,7 @@ window.Bar {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
window.Media {
|
/* window.Powermenu {
|
||||||
margin: 5px;
|
|
||||||
padding: 5px;
|
|
||||||
background-color: transparent;
|
|
||||||
box {
|
|
||||||
margin: 5px;
|
|
||||||
background-color: black;
|
|
||||||
border-radius: 25px;
|
|
||||||
padding: 2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
box.title {
|
|
||||||
padding: 5px;
|
|
||||||
margin: 0;
|
|
||||||
label {
|
|
||||||
font-weight: bold;
|
|
||||||
font-size: 1.1em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.Cover {
|
|
||||||
min-width: 120px;
|
|
||||||
min-height: 120px;
|
|
||||||
border-radius: 9px;
|
|
||||||
margin-right: 0.6rem;
|
|
||||||
background-size: contain;
|
|
||||||
background-position: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
label.artist {
|
|
||||||
padding: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
window.Powermenu {
|
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
box {
|
box {
|
||||||
@@ -176,4 +144,4 @@ window.Powermenu {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
} */
|
||||||
+1
-1
@@ -11,9 +11,9 @@ import {
|
|||||||
FocusedClient,
|
FocusedClient,
|
||||||
Time,
|
Time,
|
||||||
SysTray,
|
SysTray,
|
||||||
|
Media,
|
||||||
} from "./modules/export";
|
} from "./modules/export";
|
||||||
import { close_all_menus } from "./utils/windows";
|
import { close_all_menus } from "./utils/windows";
|
||||||
import Media from "./Media";
|
|
||||||
|
|
||||||
export default function Bar(gdkmonitor: Gdk.Monitor) {
|
export default function Bar(gdkmonitor: Gdk.Monitor) {
|
||||||
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor;
|
const { TOP, LEFT, RIGHT } = Astal.WindowAnchor;
|
||||||
|
|||||||
@@ -0,0 +1,33 @@
|
|||||||
|
window.Media {
|
||||||
|
margin: 5px;
|
||||||
|
padding: 5px;
|
||||||
|
background-color: transparent;
|
||||||
|
box {
|
||||||
|
margin: 5px;
|
||||||
|
background-color: black;
|
||||||
|
border-radius: 25px;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
box.title {
|
||||||
|
padding: 5px;
|
||||||
|
margin: 0;
|
||||||
|
label {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.Cover {
|
||||||
|
min-width: 120px;
|
||||||
|
min-height: 120px;
|
||||||
|
border-radius: 9px;
|
||||||
|
margin-right: 0.6rem;
|
||||||
|
background-size: contain;
|
||||||
|
background-position: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
label.artist {
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
File renamed without changes.
@@ -0,0 +1,22 @@
|
|||||||
|
window.Powermenu {
|
||||||
|
margin: 5px;
|
||||||
|
background-color: transparent;
|
||||||
|
box {
|
||||||
|
margin: 5px;
|
||||||
|
background-color: black;
|
||||||
|
border-radius: 25px;
|
||||||
|
// padding: 10px;
|
||||||
|
button {
|
||||||
|
all: unset;
|
||||||
|
margin: 2px;
|
||||||
|
padding: 5px 15px 5px 13px;
|
||||||
|
background-color: black;
|
||||||
|
border-radius: 25px;
|
||||||
|
transition: 300ms;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: gray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
File renamed without changes.
+13
-11
@@ -1,21 +1,23 @@
|
|||||||
import BatteryLevel from "./Battery";
|
import BatteryLevel from "./Battery";
|
||||||
import Cpu from "./Cpu";
|
import Cpu from "./Cpu";
|
||||||
import FocusedClient from "./FocusedClient";
|
import FocusedClient from "./FocusedClient";
|
||||||
import PowerMenu from "./PowerMenu";
|
import PowerMenu from "./Powermenu/PowerMenu";
|
||||||
import Ram from "./Ram";
|
import Ram from "./Ram";
|
||||||
import Storage from "./Storage";
|
import Storage from "./Storage";
|
||||||
import SysTray from "./SysTray";
|
import SysTray from "./SysTray";
|
||||||
import Time from "./Time";
|
import Time from "./Time";
|
||||||
import Workspaces from "./Workspaces";
|
import Workspaces from "./Workspaces";
|
||||||
|
import Media from "./Media/Media";
|
||||||
|
|
||||||
export {
|
export {
|
||||||
BatteryLevel,
|
BatteryLevel,
|
||||||
Cpu,
|
Cpu,
|
||||||
FocusedClient,
|
FocusedClient,
|
||||||
PowerMenu,
|
PowerMenu,
|
||||||
Ram,
|
Ram,
|
||||||
Storage,
|
Storage,
|
||||||
SysTray,
|
SysTray,
|
||||||
Time,
|
Time,
|
||||||
Workspaces
|
Workspaces,
|
||||||
}
|
Media,
|
||||||
|
};
|
||||||
Reference in new issue
Block a user