Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
99d7d9df
Commit
99d7d9df
authored
Jul 15, 2025
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unify all default widget margins and padding
All the widgets now have the same padding and margins
parent
a00a16ae
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
58 additions
and
56 deletions
+58
-56
style.scss
data/style/style.scss
+6
-0
backlight.scss
data/style/widgets/backlight.scss
+1
-5
buttons.scss
data/style/widgets/buttons.scss
+1
-6
dnd.scss
data/style/widgets/dnd.scss
+3
-4
inhibitors.scss
data/style/widgets/inhibitors.scss
+6
-6
label.scss
data/style/widgets/label.scss
+0
-2
menubar.scss
data/style/widgets/menubar.scss
+18
-13
mpris.scss
data/style/widgets/mpris.scss
+1
-1
slider.scss
data/style/widgets/slider.scss
+1
-6
title.scss
data/style/widgets/title.scss
+6
-6
volume.scss
data/style/widgets/volume.scss
+3
-7
control_center.blp
data/ui/control_center.blp
+10
-0
baseWidget.vala
src/controlCenter/widgets/baseWidget.vala
+2
-0
No files found.
data/style/style.scss
View file @
99d7d9df
...
...
@@ -361,6 +361,12 @@ $margin: 8px;
}
/*** Widgets ***/
.widget
{
margin
:
$margin
;
padding
:
$margin
;
border-radius
:
var
(
--
border-radius
);
}
/* Title widget */
@import
"widgets/title"
;
/* DND widget */
...
...
data/style/widgets/backlight.scss
View file @
99d7d9df
.widget-backlight
{
padding
:
$margin
;
margin
:
$margin
;
border-radius
:
var
(
--
border-radius
);
}
\ No newline at end of file
}
data/style/widgets/buttons.scss
View file @
99d7d9df
.widget-buttons-grid
{
padding
:
$margin
;
margin
:
$margin
;
border-radius
:
var
(
--
border-radius
);
&
flowboxchild
>
button
{
border-radius
:
var
(
--
border-radius
);
...
...
@@ -12,4 +8,4 @@
&
:hover
{}
}
}
\ No newline at end of file
}
data/style/widgets/dnd.scss
View file @
99d7d9df
.widget-dnd
{
label
{
color
:
var
(
--
text-color
);
margin
:
$margin
;
margin
-right
:
$margin
;
font-size
:
1
.1rem
;
}
switch
{
border-radius
:
var
(
--
border-radius
);
margin
:
$margin
;
margin
-left
:
$margin
;
&
:checked
{}
...
...
@@ -15,4 +15,4 @@
border-radius
:
var
(
--
border-radius
);
}
}
}
\ No newline at end of file
}
data/style/widgets/inhibitors.scss
View file @
99d7d9df
.widget-inhibitors
{
&
>
label
{
margin
:
$margin
;
&
>
label
{
margin
-right
:
$margin
;
font-size
:
1
.5rem
;
}
&
>
button
{
margin
:
$margin
;
&
>
button
{
margin
-left
:
$margin
;
border-radius
:
var
(
--
border-radius
);
}
}
\ No newline at end of file
}
data/style/widgets/label.scss
View file @
99d7d9df
.widget-label
{
margin
:
$margin
;
&
>
label
{
font-size
:
1
.1rem
;
}
...
...
data/style/widgets/menubar.scss
View file @
99d7d9df
.widget-menubar
{
&
>
.menu-button-bar
{
&
>
.menu-button-bar
{
/* The left button container */
&
>
.start
{
&
>
.start
{
margin-left
:
$margin
;
}
/* The right button container */
&
>
.end
{
&
>
.end
{
margin-right
:
$margin
;
}
/* The left and right button container */
&
>
.widget-menubar-container
{
&
>
.widget-menubar-container
{
button
{
border-radius
:
var
(
--
border-radius
);
margin
:
0
$margin
/
2
;
...
...
@@ -21,13 +20,19 @@
}
/* The revealer buttons */
&
>
revealer
{
margin-top
:
$margin
;
&
>
revealer
{
*
{
margin-top
:
$margin
;
button
{
border-radius
:
var
(
--
border-radius
);
margin
:
$margin
;
margin-top
:
0
;
button
{
border-radius
:
var
(
--
border-radius
)
;
margin
:
$margin
;
margin-top
:
0
;
&
:last-child
{
margin-bottom
:
0
;
}
}
}
}
...
...
@@ -46,4 +51,5 @@
.AnyName>button:hover {
background-color: var(--noti-bg-hover);
} */
}
\ No newline at end of file
}
data/style/widgets/mpris.scss
View file @
99d7d9df
...
...
@@ -6,7 +6,7 @@
}
.widget-mpris
{
margin
:
$margin
;
padding
:
0
;
/* The parent to all players */
.widget-mpris-player
{
...
...
data/style/widgets/slider.scss
View file @
99d7d9df
.widget-slider
{
padding
:
$margin
;
margin
:
$margin
;
border-radius
:
var
(
--
border-radius
);
label
{
font-size
:
inherit
;
}
}
\ No newline at end of file
}
data/style/widgets/title.scss
View file @
99d7d9df
.widget-title
{
&
>
label
{
margin
:
$margin
;
&
>
label
{
margin
-right
:
$margin
;
font-size
:
1
.5rem
;
}
&
>
button
{
margin
:
$margin
;
&
>
button
{
margin
-left
:
$margin
;
border-radius
:
var
(
--
border-radius
);
}
}
\ No newline at end of file
}
data/style/widgets/volume.scss
View file @
99d7d9df
...
...
@@ -3,9 +3,6 @@
}
.widget-volume
{
padding
:
$margin
;
margin
:
$margin
;
border-radius
:
var
(
--
border-radius
);
}
.widget-volume
>
box
>
button
{}
...
...
@@ -17,7 +14,7 @@
.per-app-volume
{
background-color
:
var
(
--
noti-bg-alt
);
padding
:
$margin
/
2
$margin
$margin
$margin
;
margin
:
0px
$margin
$margin
$margin
;
margin
:
$margin
;
margin
-bottom
:
0
;
border-radius
:
var
(
--
border-radius
);
}
\ No newline at end of file
}
data/ui/control_center.blp
View file @
99d7d9df
...
...
@@ -20,8 +20,18 @@ template $SwayNotificationCenterControlCenter: ApplicationWindow {
orientation: vertical;
vexpand: true;
styles [
"widgets",
]
Box notifications_box {
orientation: vertical;
overflow: hidden;
styles [
"widget",
"widget-notifications",
]
Stack stack {
hhomogeneous: true;
...
...
src/controlCenter/widgets/baseWidget.vala
View file @
99d7d9df
...
...
@@ -34,6 +34,8 @@ namespace SwayNotificationCenter.Widgets {
this
.
swaync_daemon
=
swaync_daemon
;
this
.
noti_daemon
=
noti_daemon
;
set_overflow
(
Gtk
.
Overflow
.
HIDDEN
);
add_css_class
(
"widget"
);
add_css_class
(
css_class_name
);
if
(
suffix
.
length
>
0
)
add_css_class
(
suffix
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment