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
3bc69933
Commit
3bc69933
authored
Jul 10, 2025
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed notification app icon pixel size sometimes being zero instead of -1
parent
15e86473
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
style.scss
data/style/style.scss
+1
-1
notification.blp
data/ui/notification.blp
+0
-2
notification.vala
src/notification/notification.vala
+6
-0
No files found.
data/style/style.scss
View file @
3bc69933
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
--bg-selected
:
rgb
(
0
,
128
,
255
);
--bg-selected
:
rgb
(
0
,
128
,
255
);
--notification-icon-size
:
64px
;
--notification-icon-size
:
64px
;
--notification-app-icon-size
:
var
(
--
notification-icon-size
)
/
3
;
--notification-app-icon-size
:
calc
(
var
(
--
notification-icon-size
)
/
3
)
;
--notification-group-icon-size
:
32px
;
--notification-group-icon-size
:
32px
;
}
}
...
...
data/ui/notification.blp
View file @
3bc69933
...
@@ -53,7 +53,6 @@ template $SwayNotificationCenterNotification: Box {
...
@@ -53,7 +53,6 @@ template $SwayNotificationCenterNotification: Box {
valign: center;
valign: center;
child: Image img {
child: Image img {
// pixel-size: 48;
valign: center;
valign: center;
overflow: hidden;
overflow: hidden;
...
@@ -64,7 +63,6 @@ template $SwayNotificationCenterNotification: Box {
...
@@ -64,7 +63,6 @@ template $SwayNotificationCenterNotification: Box {
[overlay]
[overlay]
Image img_app_icon {
Image img_app_icon {
// pixel-size: 48;
halign: end;
halign: end;
valign: end;
valign: end;
overflow: hidden;
overflow: hidden;
...
...
src/notification/notification.vala
View file @
3bc69933
...
@@ -695,10 +695,16 @@ namespace SwayNotificationCenter {
...
@@ -695,10 +695,16 @@ namespace SwayNotificationCenter {
}
}
int
notification_icon_size
=
ConfigModel
.
instance
.
notification_icon_size
.
clamp
(-
1
,
int
.
MAX
);
int
notification_icon_size
=
ConfigModel
.
instance
.
notification_icon_size
.
clamp
(-
1
,
int
.
MAX
);
if
(
notification_icon_size
<
1
)
{
notification_icon_size
=
-
1
;
}
img
.
set_pixel_size
(
notification_icon_size
);
img
.
set_pixel_size
(
notification_icon_size
);
img
.
height_request
=
notification_icon_size
;
img
.
height_request
=
notification_icon_size
;
img
.
width_request
=
notification_icon_size
;
img
.
width_request
=
notification_icon_size
;
int
app_icon_size
=
(
notification_icon_size
/
3
).
clamp
(-
1
,
int
.
MAX
);
int
app_icon_size
=
(
notification_icon_size
/
3
).
clamp
(-
1
,
int
.
MAX
);
if
(
app_icon_size
<
1
)
{
app_icon_size
=
-
1
;
}
img_app_icon
.
set_pixel_size
(
app_icon_size
);
img_app_icon
.
set_pixel_size
(
app_icon_size
);
bool
img_path_is_theme_icon
=
false
;
bool
img_path_is_theme_icon
=
false
;
...
...
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