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
fd7896e5
Commit
fd7896e5
authored
Jul 16, 2025
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --custom-system-css to specify a custom "system" CSS file
parent
c4f957a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
functions.vala
src/functions.vala
+3
-0
main.vala
src/main.vala
+6
-0
No files found.
src/functions.vala
View file @
fd7896e5
...
@@ -80,6 +80,9 @@ namespace SwayNotificationCenter {
...
@@ -80,6 +80,9 @@ namespace SwayNotificationCenter {
// Load packaged CSS as backup
// Load packaged CSS as backup
string
system_css
=
get_style_path
(
null
,
true
);
string
system_css
=
get_style_path
(
null
,
true
);
system_css
=
File
.
new_for_path
(
system_css
).
get_path
()
??
system_css
;
system_css
=
File
.
new_for_path
(
system_css
).
get_path
()
??
system_css
;
if
(
custom_packaged_css
!=
null
)
{
system_css
=
custom_packaged_css
;
}
if
(!
skip_packaged_css
)
{
if
(!
skip_packaged_css
)
{
message
(
"Loading CSS: \"%s\""
,
system_css
);
message
(
"Loading CSS: \"%s\""
,
system_css
);
system_css_provider
.
load_from_path
(
system_css
);
system_css_provider
.
load_from_path
(
system_css
);
...
...
src/main.vala
View file @
fd7896e5
...
@@ -9,6 +9,7 @@ namespace SwayNotificationCenter {
...
@@ -9,6 +9,7 @@ namespace SwayNotificationCenter {
static
string
?
config_path
;
static
string
?
config_path
;
// Dev args
// Dev args
static
bool
skip_packaged_css
=
false
;
static
bool
skip_packaged_css
=
false
;
static
string
?
custom_packaged_css
;
public
class
Swaync
:
Gtk
.
Application
{
public
class
Swaync
:
Gtk
.
Application
{
...
@@ -84,6 +85,9 @@ namespace SwayNotificationCenter {
...
@@ -84,6 +85,9 @@ namespace SwayNotificationCenter {
case
"--skip-system-css"
:
case
"--skip-system-css"
:
skip_packaged_css
=
true
;
skip_packaged_css
=
true
;
break
;
break
;
case
"--custom-system-css"
:
custom_packaged_css
=
args
[++
i
];
break
;
case
"-c"
:
case
"-c"
:
case
"--config"
:
case
"--config"
:
config_path
=
args
[++
i
];
config_path
=
args
[++
i
];
...
@@ -131,6 +135,8 @@ namespace SwayNotificationCenter {
...
@@ -131,6 +135,8 @@ namespace SwayNotificationCenter {
print
(
"\t -c, --config \t\t Use a custom config file\n"
);
print
(
"\t -c, --config \t\t Use a custom config file\n"
);
print
(
"\t --skip-system-css \t Skip trying to parse the packaged Stylesheet file."
print
(
"\t --skip-system-css \t Skip trying to parse the packaged Stylesheet file."
+
" Useful for CSS debugging\n"
);
+
" Useful for CSS debugging\n"
);
print
(
"\t --custom-system-css \t Pick a custom CSS file to use as the \"system\" CSS."
+
" Useful for CSS debugging\n"
);
}
}
}
}
}
}
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