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
a00a16ae
Commit
a00a16ae
authored
Jul 15, 2025
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced most SCSS variables with CSS variables
Makes it easier to override variables like border radius without recompiling the original SCSS
parent
56a81d15
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
104 additions
and
80 deletions
+104
-80
style.scss
data/style/style.scss
+49
-35
backlight.scss
data/style/widgets/backlight.scss
+3
-2
buttons.scss
data/style/widgets/buttons.scss
+7
-6
dnd.scss
data/style/widgets/dnd.scss
+5
-5
inhibitors.scss
data/style/widgets/inhibitors.scss
+5
-4
menubar.scss
data/style/widgets/menubar.scss
+10
-8
mpris.scss
data/style/widgets/mpris.scss
+12
-9
slider.scss
data/style/widgets/slider.scss
+3
-2
title.scss
data/style/widgets/title.scss
+5
-4
volume.scss
data/style/widgets/volume.scss
+5
-5
No files found.
data/style/style.scss
View file @
a00a16ae
...
...
@@ -18,20 +18,20 @@
--notification-icon-size
:
64px
;
--notification-app-icon-size
:
calc
(
var
(
--
notification-icon-size
)
/
3
);
--notification-group-icon-size
:
32px
;
}
$border
:
1px
solid
var
(
--
noti-border-color
);
$border-radius
:
12px
;
$margin
:
8px
;
--border
:
1px
solid
var
(
--
noti-border-color
);
--border-radius
:
12px
;
$font-size-body
:
15px
;
$font-size-summary
:
16px
;
--notification-shadow
:
0
0
0
1px
rgba
(
0
,
0
,
0
,
0
.3
)
,
0
1px
3px
1px
rgba
(
0
,
0
,
0
,
0
.7
)
,
0
2px
6px
2px
rgba
(
0
,
0
,
0
,
0
.3
);
--font-size-body
:
15px
;
--font-size-summary
:
16px
;
$hover-tranistion
:
background
0
.15s
ease-in-out
;
$group-collapse-tranistion
:
opacity
400ms
ease-in-out
;
--hover-tranistion
:
background
0
.15s
ease-in-out
;
--group-collapse-tranistion
:
opacity
400ms
ease-in-out
;
}
$notification-shadow
:
0
0
0
1px
rgba
(
0
,
0
,
0
,
0
.3
)
,
0
1px
3px
1px
rgba
(
0
,
0
,
0
,
0
.7
)
,
0
2px
6px
2px
rgba
(
0
,
0
,
0
,
0
.3
);
$margin
:
8px
;
.close-button
{
/* The notification Close Button */
...
...
@@ -50,7 +50,7 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
&
:hover
{
box-shadow
:
none
;
background
:
var
(
--
noti-close-bg-hover
);
transition
:
$hover-tranistion
;
transition
:
var
(
--
hover-tranistion
)
;
border
:
none
;
}
}
...
...
@@ -62,26 +62,28 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
&
:focus
{
background
:
var
(
--
noti-bg-focus
);
}
.notification-background
{
padding
:
6px
12px
;
.close-button
{
}
.close-button
{}
.notification
{
/* The actual notification */
border-radius
:
$border-radius
;
border
:
$border
;
border-radius
:
var
(
--
border-radius
)
;
border
:
var
(
--
border
)
;
padding
:
0
;
transition
:
$hover-tranistion
;
transition
:
var
(
--
hover-tranistion
)
;
background
:
rgba
(
var
(
--
noti-bg
)
,
var
(
--
noti-bg-alpha
));
&
.low
{
/* Low Priority Notification */
}
&
.normal
{
/* Normal Priority Notification */
}
&
.critical
{
/* Critical Priority Notification */
}
...
...
@@ -94,8 +96,8 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
background
:
transparent
;
border
:
none
;
color
:
var
(
--
text-color
);
transition
:
$hover-tranistion
;
border-radius
:
$border-radius
;
transition
:
var
(
--
hover-tranistion
)
;
border-radius
:
var
(
--
border-radius
)
;
&
:hover
{
-gtk-icon-filter
:
none
;
...
...
@@ -110,7 +112,7 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
.notification-content
{
background
:
transparent
;
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
$margin
:
4px
;
padding
:
0
;
...
...
@@ -118,9 +120,11 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
/* Notification Primary Image */
-gtk-icon-filter
:
none
;
-gtk-icon-size
:
var
(
--
notification-icon-size
);
border-radius
:
100px
;
/* Size in px */
border-radius
:
100px
;
/* Size in px */
margin
:
$margin
;
}
.app-icon
{
/* Notification app icon (only visible when the primary image is set) */
-gtk-icon-filter
:
none
;
...
...
@@ -137,24 +141,26 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
.summary
{
/* Notification summary/title */
font-size
:
$font-size-summary
;
font-size
:
var
(
--
font-size-summary
)
;
font-weight
:
bold
;
background
:
transparent
;
color
:
var
(
--
text-color
);
text-shadow
:
none
;
}
.time
{
/* Notification time-ago */
font-size
:
$font-size-summary
;
font-size
:
var
(
--
font-size-summary
)
;
font-weight
:
bold
;
background
:
transparent
;
color
:
var
(
--
text-color
);
text-shadow
:
none
;
margin-right
:
30px
;
}
.body
{
/* Notification body */
font-size
:
$font-size-body
;
font-size
:
var
(
--
font-size-body
)
;
font-weight
:
normal
;
background
:
transparent
;
color
:
var
(
--
text-color
);
...
...
@@ -182,22 +188,24 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
background
:
var
(
--
noti-bg-darker
);
color
:
var
(
--
text-color
);
caret-color
:
var
(
--
text-color
);
border
:
$border
;
border-radius
:
$border-radius
;
border
:
var
(
--
border
)
;
border-radius
:
var
(
--
border-radius
)
;
}
.inline-reply-button
{
margin-left
:
4px
;
background
:
rgba
(
var
(
--
noti-bg
)
,
var
(
--
noti-bg-alpha
));
border
:
$border
;
border-radius
:
$border-radius
;
border
:
var
(
--
border
)
;
border-radius
:
var
(
--
border-radius
)
;
color
:
var
(
--
text-color
);
&
:disabled
{
background
:
initial
;
color
:
var
(
--
text-color-disabled
);
border
:
$border
;
border
:
var
(
--
border
)
;
border-color
:
transparent
;
}
&
:hover
{
background
:
var
(
--
noti-bg-hover
);
}
...
...
@@ -208,8 +216,8 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
.notification-alt-actions
{
background
:
none
;
border-bottom-left-radius
:
$border-radius
;
border-bottom-right-radius
:
$border-radius
;
border-bottom-left-radius
:
var
(
--
border-radius
)
;
border-bottom-right-radius
:
var
(
--
border-radius
)
;
padding
:
$margin
/
2
;
}
...
...
@@ -218,8 +226,8 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
margin
:
$margin
/
2
;
padding
:
0
;
&
>
button
{
border-radius
:
$border-radius
;
&
>
button
{
border-radius
:
var
(
--
border-radius
)
;
color
:
var
(
--
text-color
);
}
}
...
...
@@ -238,9 +246,11 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
&
.low
{
/* Low Priority Group */
}
&
.normal
{
/* Low Priority Group */
}
&
.critical
{
/* Low Priority Group */
}
...
...
@@ -263,16 +273,19 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
color
:
var
(
--
text-color
);
-gtk-icon-size
:
var
(
--
notification-group-icon-size
);
}
.notification-group-header
{
color
:
var
(
--
text-color
);
}
}
.notification-group-buttons
{
/* Notification Group Buttons */
@extend
%header
;
}
&
.collapsed
{
/* When another group is expanded, lower the opacity of the collapsed ones */
&
.not-expanded
{
opacity
:
0
.4
;
...
...
@@ -284,6 +297,7 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
}
&
:not
(
:last-child
)
{
/* Top notification in stack */
/* Set lower stacked notifications opacity to 0 */
.notification-action
,
...
...
@@ -307,7 +321,7 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
/* The Control Center which contains the old notifications + widgets */
background
:
var
(
--
cc-bg
);
color
:
var
(
--
text-color
);
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
.control-center-list-placeholder
{
/* The placeholder when there are no notifications */
...
...
@@ -319,11 +333,11 @@ $notification-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3),
background
:
transparent
;
.notification
{
box-shadow
:
$notification-shadow
;
box-shadow
:
var
(
--
notification-shadow
)
;
.notification-default-action
,
.notification-action
{
transition
:
$group-collapse-tranistion
,
$hover-tranistion
;
transition
:
var
(
--
group-collapse-tranistion
)
,
var
(
--
hover-tranistion
)
;
&
:hover
{
background-color
:
var
(
--
noti-bg-hover
);
...
...
data/style/widgets/backlight.scss
View file @
a00a16ae
.widget-backlight
{
padding
:
$margin
;
margin
:
$margin
;
border-radius
:
$border-radius
;
}
border-radius
:
var
(
--
border-radius
)
;
}
\ No newline at end of file
data/style/widgets/buttons.scss
View file @
a00a16ae
.widget-buttons-grid
{
padding
:
$margin
;
margin
:
$margin
;
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
);
&
flowboxchild
>
button
{
border-radius
:
var
(
--
border-radius
);
&
flowboxchild
>
button
{
border-radius
:
$border-radius
;
&
.toggle
:checked
{
/* style given to the active toggle button */
}
&
:hover
{
}
&
:hover
{}
}
}
}
\ No newline at end of file
data/style/widgets/dnd.scss
View file @
a00a16ae
...
...
@@ -6,14 +6,13 @@
}
switch
{
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
margin
:
$margin
;
&
:checked
{
}
&
:checked
{}
slider
{
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
}
}
}
}
\ No newline at end of file
data/style/widgets/inhibitors.scss
View file @
a00a16ae
.widget-inhibitors
{
&
>
label
{
&
>
label
{
margin
:
$margin
;
font-size
:
1
.5rem
;
}
&
>
button
{
&
>
button
{
margin
:
$margin
;
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
}
}
}
\ No newline at end of file
data/style/widgets/menubar.scss
View file @
a00a16ae
.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
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
margin
:
0
$margin
/
2
;
}
}
}
/* The revealer buttons */
&
>
revealer
{
&
>
revealer
{
margin-top
:
$margin
;
button
{
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
margin
:
$margin
;
margin-top
:
0
;
}
...
...
@@ -45,4 +46,4 @@
.AnyName>button:hover {
background-color: var(--noti-bg-hover);
} */
}
}
\ No newline at end of file
data/style/widgets/mpris.scss
View file @
a00a16ae
...
...
@@ -2,18 +2,17 @@
--mpris-album-art-overlay
:
rgba
(
0
,
0
,
0
,
0
.55
);
--mpris-button-hover
:
rgba
(
0
,
0
,
0
,
0
.5
);
--mpris-album-art-icon-size
:
96px
;
--mpris-album-art-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
0
.75
);
}
$mpris-shadow
:
0px
0px
10px
rgba
(
0
,
0
,
0
,
0
.75
);
.widget-mpris
{
margin
:
$margin
;
/* The parent to all players */
.widget-mpris-player
{
margin
:
16px
20px
;
border-radius
:
$border-radius
;
box-shadow
:
$mpris-shadow
;
border-radius
:
var
(
--
border-radius
)
;
box-shadow
:
var
(
--
mpris-album-art-shadow
)
;
.mpris-background
{
filter
:
blur
(
10px
);
...
...
@@ -29,19 +28,22 @@ $mpris-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75);
}
.widget-mpris-album-art
{
border-radius
:
$border-radius
;
box-shadow
:
$mpris-shadow
;
border-radius
:
var
(
--
border-radius
)
;
box-shadow
:
var
(
--
mpris-album-art-shadow
)
;
-gtk-icon-size
:
var
(
--
mpris-album-art-icon-size
);
}
.widget-mpris-title
{
font-weight
:
bold
;
font-size
:
1
.25rem
;
}
.widget-mpris-subtitle
{
font-size
:
1
.1rem
;
}
&
>
box
>
button
{
&
>
box
>
button
{
/* Change player control buttons */
&
:hover
{
background-color
:
var
(
--
mpris-button-hover
);
...
...
@@ -50,10 +52,11 @@ $mpris-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75);
}
}
&
>
box
>
button
{
&
>
box
>
button
{
/* Change player side buttons */
}
&
>
box
>
button
:disabled
{
&
>
box
>
button
:disabled
{
/* Change player side buttons insensitive */
}
}
data/style/widgets/slider.scss
View file @
a00a16ae
.widget-slider
{
padding
:
$margin
;
margin
:
$margin
;
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
label
{
font-size
:
inherit
;
}
}
}
\ No newline at end of file
data/style/widgets/title.scss
View file @
a00a16ae
.widget-title
{
&
>
label
{
&
>
label
{
margin
:
$margin
;
font-size
:
1
.5rem
;
}
&
>
button
{
&
>
button
{
margin
:
$margin
;
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
}
}
}
\ No newline at end of file
data/style/widgets/volume.scss
View file @
a00a16ae
...
...
@@ -5,11 +5,10 @@
.widget-volume
{
padding
:
$margin
;
margin
:
$margin
;
border-radius
:
$border-radius
;
border-radius
:
var
(
--
border-radius
)
;
}
.widget-volume
>
box
>
button
{
}
.widget-volume
>
box
>
button
{}
/* Each row app icon */
.widget-volume
row
image
{
...
...
@@ -20,5 +19,5 @@
background-color
:
var
(
--
noti-bg-alt
);
padding
:
$margin
/
2
$margin
$margin
$margin
;
margin
:
0px
$margin
$margin
$margin
;
border-radius
:
$border-radius
;
}
border-radius
:
var
(
--
border-radius
)
;
}
\ No newline at end of file
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