@@ -15,7 +15,7 @@ use cosmic::{
15
15
renderer:: BorderRadius ,
16
16
window,
17
17
} ,
18
- iced_style:: { application, button:: StyleSheet , svg } ,
18
+ iced_style:: { application, button:: StyleSheet } ,
19
19
theme:: { Button , Svg } ,
20
20
widget:: { button, divider, icon, toggler} ,
21
21
Element , Theme ,
@@ -415,9 +415,7 @@ impl Application for CosmicNetworkApplet {
415
415
}
416
416
let mut btn_content = vec ! [
417
417
icon( "network-wireless-symbolic" , 24 )
418
- . style( Svg :: Custom ( |theme| svg:: Appearance {
419
- color: Some ( theme. palette( ) . text) ,
420
- } ) )
418
+ . style( Svg :: Symbolic )
421
419
. width( Length :: Units ( 24 ) )
422
420
. height( Length :: Units ( 24 ) )
423
421
. into( ) ,
@@ -430,9 +428,7 @@ impl Application for CosmicNetworkApplet {
430
428
| ActiveConnectionState :: Deactivating => {
431
429
btn_content. push (
432
430
icon ( "process-working-symbolic" , 24 )
433
- . style ( Svg :: Custom ( |theme| svg:: Appearance {
434
- color : Some ( theme. palette ( ) . text ) ,
435
- } ) )
431
+ . style ( Svg :: Symbolic )
436
432
. width ( Length :: Units ( 24 ) )
437
433
. height ( Length :: Units ( 24 ) )
438
434
. into ( ) ,
@@ -461,9 +457,7 @@ impl Application for CosmicNetworkApplet {
461
457
for known in & self . nm_state . known_access_points {
462
458
let mut btn_content = vec ! [
463
459
icon( "network-wireless-symbolic" , 24 )
464
- . style( Svg :: Custom ( |theme| svg:: Appearance {
465
- color: Some ( theme. palette( ) . text) ,
466
- } ) )
460
+ . style( Svg :: Symbolic )
467
461
. width( Length :: Units ( 24 ) )
468
462
. height( Length :: Units ( 24 ) )
469
463
. into( ) ,
@@ -473,9 +467,7 @@ impl Application for CosmicNetworkApplet {
473
467
if known. working {
474
468
btn_content. push (
475
469
icon ( "process-working-symbolic" , 24 )
476
- . style ( Svg :: Custom ( |theme| svg:: Appearance {
477
- color : Some ( theme. palette ( ) . text ) ,
478
- } ) )
470
+ . style ( Svg :: Symbolic )
479
471
. width ( Length :: Units ( 24 ) )
480
472
. height ( Length :: Units ( 24 ) )
481
473
. into ( ) ,
@@ -542,9 +534,7 @@ impl Application for CosmicNetworkApplet {
542
534
. into( ) ,
543
535
container(
544
536
icon( dropdown_icon, 14 )
545
- . style( Svg :: Custom ( |theme| svg:: Appearance {
546
- color: Some ( theme. palette( ) . text) ,
547
- } ) )
537
+ . style( Svg :: Symbolic )
548
538
. width( Length :: Units ( 14 ) )
549
539
. height( Length :: Units ( 14 ) ) ,
550
540
)
@@ -569,9 +559,7 @@ impl Application for CosmicNetworkApplet {
569
559
} => {
570
560
let id = row ! [
571
561
icon( "network-wireless-symbolic" , 24 )
572
- . style( Svg :: Custom ( |theme| svg:: Appearance {
573
- color: Some ( theme. palette( ) . text) ,
574
- } ) )
562
+ . style( Svg :: Symbolic )
575
563
. width( Length :: Units ( 24 ) )
576
564
. height( Length :: Units ( 24 ) ) ,
577
565
text( & access_point. ssid) . size( 14 ) ,
@@ -609,9 +597,7 @@ impl Application for CosmicNetworkApplet {
609
597
NewConnectionState :: Waiting ( access_point) => {
610
598
let id = row ! [
611
599
icon( "network-wireless-symbolic" , 24 )
612
- . style( Svg :: Custom ( |theme| svg:: Appearance {
613
- color: Some ( theme. palette( ) . text) ,
614
- } ) )
600
+ . style( Svg :: Symbolic )
615
601
. width( Length :: Units ( 24 ) )
616
602
. height( Length :: Units ( 24 ) ) ,
617
603
text( & access_point. ssid) . size( 14 ) ,
@@ -622,9 +608,7 @@ impl Application for CosmicNetworkApplet {
622
608
let connecting = row ! [
623
609
id,
624
610
icon( "process-working-symbolic" , 24 )
625
- . style( Svg :: Custom ( |theme| svg:: Appearance {
626
- color: Some ( theme. palette( ) . text) ,
627
- } ) )
611
+ . style( Svg :: Symbolic )
628
612
. width( Length :: Units ( 24 ) )
629
613
. height( Length :: Units ( 24 ) ) ,
630
614
]
@@ -635,9 +619,7 @@ impl Application for CosmicNetworkApplet {
635
619
NewConnectionState :: Failure ( access_point) => {
636
620
let id = row ! [
637
621
icon( "network-wireless-symbolic" , 24 )
638
- . style( Svg :: Custom ( |theme| svg:: Appearance {
639
- color: Some ( theme. palette( ) . text) ,
640
- } ) )
622
+ . style( Svg :: Symbolic )
641
623
. width( Length :: Units ( 24 ) )
642
624
. height( Length :: Units ( 24 ) ) ,
643
625
text( & access_point. ssid) . size( 14 ) ,
@@ -687,9 +669,7 @@ impl Application for CosmicNetworkApplet {
687
669
let button = button ( button_style)
688
670
. custom ( vec ! [ row![
689
671
icon( "network-wireless-symbolic" , 16 )
690
- . style( Svg :: Custom ( |theme| svg:: Appearance {
691
- color: Some ( theme. palette( ) . text) ,
692
- } ) )
672
+ . style( Svg :: Symbolic )
693
673
. width( Length :: Units ( 16 ) )
694
674
. height( Length :: Units ( 16 ) ) ,
695
675
text( & ap. ssid)
0 commit comments