💄 control-center,center-window: add background shadow, use gtk's spacing instead of margin
This commit is contained in:
@@ -2,10 +2,12 @@
|
|||||||
@use "./wal";
|
@use "./wal";
|
||||||
@use "./colors";
|
@use "./colors";
|
||||||
|
|
||||||
.center-window-container {
|
|
||||||
|
.popup-window.center-window .center-window-container {
|
||||||
background: colors.$bg-translucent;
|
background: colors.$bg-translucent;
|
||||||
border-radius: 18px;
|
border-radius: 24px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
|
box-shadow: 0 0 6px colors.$bg-translucent;
|
||||||
|
|
||||||
& .big-media {
|
& .big-media {
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
@@ -85,7 +87,7 @@
|
|||||||
|
|
||||||
& .calendar-box {
|
& .calendar-box {
|
||||||
& calendar {
|
& calendar {
|
||||||
$border-radius: 10px;
|
$border-radius: 14px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding-bottom: 2px;
|
padding-bottom: 2px;
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
background: colors.$bg-translucent;
|
background: colors.$bg-translucent;
|
||||||
border-radius: 28px;
|
border-radius: 28px;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
|
box-shadow: 0 0 6px 1px colors.$bg-translucent;
|
||||||
|
|
||||||
& > * {
|
& > * {
|
||||||
margin: 9px 0;
|
margin: 9px 0;
|
||||||
@@ -164,10 +165,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
box.history {
|
box.history {
|
||||||
margin-top: 10px;
|
|
||||||
background: colors.$bg-translucent;
|
background: colors.$bg-translucent;
|
||||||
|
box-shadow: 0 0 6px 1px colors.$bg-translucent;
|
||||||
border-radius: 24px;
|
border-radius: 24px;
|
||||||
padding: 20px;
|
padding: 18px;
|
||||||
transition: 120ms linear;
|
transition: 120ms linear;
|
||||||
|
|
||||||
&.hide {
|
&.hide {
|
||||||
@@ -176,7 +177,7 @@ box.history {
|
|||||||
|
|
||||||
& .notifications {
|
& .notifications {
|
||||||
& .notification {
|
& .notification {
|
||||||
background: colors.$bg-primary;
|
background: colors.$bg-translucent-primary;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,9 @@ export const CenterWindow = (mon: number) => PopupWindow({
|
|||||||
new Widget.Box({
|
new Widget.Box({
|
||||||
className: "datetime",
|
className: "datetime",
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
orientation: Gtk.Orientation.VERTICAL,
|
||||||
valign: Gtk.Align.START,
|
halign: Gtk.Align.CENTER,
|
||||||
|
valign: Gtk.Align.CENTER,
|
||||||
|
vexpand: true,
|
||||||
children: [
|
children: [
|
||||||
new Widget.Label({
|
new Widget.Label({
|
||||||
className: "time",
|
className: "time",
|
||||||
@@ -56,6 +58,7 @@ export const CenterWindow = (mon: number) => PopupWindow({
|
|||||||
orientation: Gtk.Orientation.HORIZONTAL,
|
orientation: Gtk.Orientation.HORIZONTAL,
|
||||||
cssColor: "gray",
|
cssColor: "gray",
|
||||||
margin: 5,
|
margin: 5,
|
||||||
|
spacing: 8,
|
||||||
alpha: .3,
|
alpha: .3,
|
||||||
visible: bind(AstalMpris.get_default(), "players").as(players => players.length > 0),
|
visible: bind(AstalMpris.get_default(), "players").as(players => players.length > 0),
|
||||||
} as SeparatorProps),
|
} as SeparatorProps),
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ export const ControlCenter = (mon: number) => PopupWindow({
|
|||||||
widthRequest: 395,
|
widthRequest: 395,
|
||||||
child: new Widget.Box({
|
child: new Widget.Box({
|
||||||
orientation: Gtk.Orientation.VERTICAL,
|
orientation: Gtk.Orientation.VERTICAL,
|
||||||
|
spacing: 16,
|
||||||
children: [
|
children: [
|
||||||
new Widget.Box({
|
new Widget.Box({
|
||||||
className: "control-center-container",
|
className: "control-center-container",
|
||||||
|
|||||||
Reference in New Issue
Block a user