File tree Expand file tree Collapse file tree 4 files changed +18
-6
lines changed
controlCenter/widgets/volume Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change
1
+ :root {
2
+ --widget-volume-row-icon-size : 24px ;
3
+ }
4
+
1
5
.widget-volume {
2
6
padding : $margin ;
3
7
margin : $margin ;
7
11
.widget-volume > box > button {
8
12
}
9
13
14
+ /* Each row app icon */
15
+ .widget-volume row image {
16
+ -gtk-icon-size : var (--widget-volume-row-icon-size );
17
+ }
18
+
10
19
.per-app-volume {
11
20
background-color : var (--noti-bg-alt );
12
21
padding : $margin / 2 $margin $margin $margin ;
Original file line number Diff line number Diff line change 557
557
},
558
558
"icon-size" : {
559
559
"type" : " integer" ,
560
- "default" : 24 ,
561
- "description" : " Size of the application icon in per app volume control"
560
+ "deprecated" : true ,
561
+ "default" : -1 ,
562
+ "description" : " deprecated (change the CSS root variable \" --widget-volume-row-icon-size\" ): Size of the application icon in per app volume control"
562
563
},
563
564
"animation-type" : {
564
565
"type" : " string" ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ namespace SwayNotificationCenter.Widgets {
26
26
scale. draw_value = false ;
27
27
scale. set_hexpand (true );
28
28
29
- icon. pixel_size = icon_size;
29
+ icon. set_pixel_size ( icon_size) ;
30
30
31
31
container = new Gtk .Box (Gtk . Orientation . HORIZONTAL , 0 );
32
32
Original file line number Diff line number Diff line change @@ -20,7 +20,9 @@ namespace SwayNotificationCenter.Widgets {
20
20
21
21
string ? expand_label = null ;
22
22
string ? collapse_label = null ;
23
- int icon_size = 24 ;
23
+
24
+ [Version (deprecated = true , replacement = "CSS root variable ")]
25
+ int icon_size = -1;
24
26
25
27
Gtk . RevealerTransitionType revealer_type = Gtk . RevealerTransitionType . SLIDE_DOWN ;
26
28
int revealer_duration = 250 ;
@@ -124,8 +126,8 @@ namespace SwayNotificationCenter.Widgets {
124
126
125
127
foreach (var item in this . client. active_sinks. values) {
126
128
SinkInputRow row = new SinkInputRow (item, client,
127
- icon_size, show_per_app_icon,
128
- show_per_app_label);
129
+ icon_size, show_per_app_icon,
130
+ show_per_app_label);
129
131
list_box_controller. append (row);
130
132
}
131
133
You can’t perform that action at this time.
0 commit comments