44
55$ease-out-quad : cubic-bezier (0.25 , 0.46 , 0.45 , 0.94 );
66$asset_suffix : if ($variant == ' dark' , ' -dark' , ' ' );
7- $assets : if ($contrast == ' normal' , ' assets' , ' assets-hc' );
7+ $asset_prefix : if ($contrast == ' normal' , ' ' , ' hc-' );
8+ $assets : ' assets' ;
89$backdrop_transition : 200ms ease-out ;
910$button_transition : all 200ms $ease-out-quad ;
1011$focus_transition : outline-width 200ms $ease-out-quad , outline-offset 200ms $ease-out-quad ;
1112$button_radius : 6px ; // Yaru change: sync radius with Gtk4
12- $menu_radius : 6 px ; // Yaru change: ↑↑↑
13- $window_radius : $button_radius + 6 ; // Yaru change: ↑↑↑
13+ $menu_radius : 8 px ; // Yaru change: ↑↑↑
14+ $window_radius : 15 px ; // Yaru change: ↑↑↑
1415$popover_radius : $window_radius ; // Yaru change: ↑↑↑
1516$menu_margin : $menu_radius ; // margin around menuitems & sidebar items
1617
@@ -86,6 +87,35 @@ textview {
8687 }
8788}
8889
90+ preedit {
91+ & .whole {
92+ text-decoration : underline ;
93+ }
94+
95+ & .selection {
96+ background-color : $backdrop_selected_bg_color ;
97+ color : transparent ;
98+ }
99+
100+ & .prediction {
101+ font-style : italic ;
102+ }
103+
104+ & .prefix , & .suffix {
105+ color : gtkalpha (currentColor , 0.5 );
106+ }
107+
108+ & .spelling-error {
109+ text-decoration : $error_color underline wavy ;
110+ }
111+
112+ & .compose-error {
113+ text-decoration : $error_color line-through ;
114+ }
115+ }
116+
117+ textview > text > preedit { @extend preedit; }
118+
89119textview > border { background-color : mix ($bg_color , $base_color , 50% ); }
90120
91121iconview {
@@ -355,6 +385,10 @@ entry {
355385 }
356386 }
357387
388+ > text > preedit {
389+ @extend preedit;
390+ }
391+
358392 // entry error and warning style
359393 @each $e_type , $e_color in (error, $error_color ),
360394 (warning, $warning_color ) {
@@ -1622,13 +1656,10 @@ headerbar {
16221656 margin : 0 ;
16231657 }
16241658
1625- & .start {
1626- margin-left : -6px ;
1627-
1628- > button :first-child {
1629- padding-left : 6px ;
1630- }
1659+ & .start > image .icon {
1660+ -gtk-icon-size : 20px ;
16311661 }
1662+
16321663 & .end {
16331664 margin-right : -6px ;
16341665
@@ -2642,23 +2673,19 @@ check {
26422673 border-radius : 3px ;
26432674 -gtk-icon-size : 14px ;
26442675
2645- & :checked { -gtk-icon-source : -gtk-scaled (-gtk-recolor (url (" #{$assets } /check-symbolic.symbolic.png" )),
2646- -gtk-recolor (url (" #{$assets } /check@2-symbolic.symbolic.png" ))); }
2676+ & :checked { -gtk-icon-source : -gtk-recolor (url (" #{$assets } /#{$asset_prefix } check-symbolic.svg" )); }
26472677
2648- & :indeterminate { -gtk-icon-source : -gtk-scaled (-gtk-recolor (url (" #{$assets } /dash-symbolic.symbolic.png" )),
2649- -gtk-recolor (url (" #{$assets } /dash@2-symbolic.symbolic.png" ))); }
2678+ & :indeterminate { -gtk-icon-source : -gtk-recolor (url (" #{$assets } /#{$asset_prefix } dash-symbolic.svg" )); }
26502679}
26512680
26522681%radio ,
26532682radio {
26542683 border-radius : 100% ;
26552684 -gtk-icon-size : 14px ;
26562685
2657- & :checked { -gtk-icon-source : -gtk-scaled (-gtk-recolor (url (" #{$assets } /bullet-symbolic.symbolic.png" )),
2658- -gtk-recolor (url (" #{$assets } /bullet@2-symbolic.symbolic.png" ))); }
2686+ & :checked { -gtk-icon-source : -gtk-recolor (url (" #{$assets } /#{$asset_prefix } bullet-symbolic.svg" )); }
26592687
2660- & :indeterminate { -gtk-icon-source : -gtk-scaled (-gtk-recolor (url (" #{$assets } /dash-symbolic.symbolic.png" )),
2661- -gtk-recolor (url (" #{$assets } /dash@2-symbolic.symbolic.png" ))); }
2688+ & :indeterminate { -gtk-icon-source : -gtk-recolor (url (" #{$assets } /#{$asset_prefix } dash-symbolic.svg" )); }
26622689}
26632690
26642691treeview.view check,
@@ -2911,7 +2938,6 @@ scale {
29112938 // *WARNING* scale with marks madness following
29122939
29132940 // FIXME: OSD and selected list rows missing, I don't feel like adding the other 144 assets needed for those...
2914- $suffix : if ($variant == ' light' , ' ' , ' -dark' );
29152941
29162942 @each $dir_class , $dir_infix in (' horizontal' , ' horz' ),
29172943 (' vertical' , ' vert' ) {
@@ -2928,7 +2954,7 @@ scale {
29282954 // an asymmetric slider asset is used here, so the margins are uneven, the smaller
29292955 // margin is set on the point side.
29302956 margin : -10px ;
2931- $_scale_asset : ' #{$assets } /slider-#{$dir_infix } -#{$marks_infix }#{$state_infix }#{$suffix } ' ;
2957+ $_scale_asset : ' #{$assets } /#{ $asset_prefix } slider-#{$dir_infix } -#{$marks_infix }#{$state_infix }#{$asset_suffix } ' ;
29322958 border-style : none ;
29332959 border-radius : 0 ;
29342960
@@ -4315,19 +4341,19 @@ cursor-handle {
43154341 (' :hover' ,' -hover' ),
43164342 (' :active' ,' -active' ) { // no need for insensitive and backdrop
43174343 & .top#{$s } :dir (ltr ), & .bottom#{$s } :dir (rtl ) {
4318- $_url : ' #{$assets } /text-select-start#{$as }#{$asset_suffix } ' ;
4344+ $_url : ' #{$assets } /#{ $asset_prefix } text-select-start#{$as }#{$asset_suffix } ' ;
43194345 -gtk-icon-source : -gtk-scaled (url (' #{$_url } .png' ),
43204346 url (' #{$_url } @2.png' ));
43214347 }
43224348
43234349 & .bottom#{$s } :dir (ltr ), & .top#{$s } :dir (rtl ) {
4324- $_url : ' #{$assets } /text-select-end#{$as }#{$asset_suffix } ' ;
4350+ $_url : ' #{$assets } /#{ $asset_prefix } text-select-end#{$as }#{$asset_suffix } ' ;
43254351 -gtk-icon-source : -gtk-scaled (url (' #{$_url } .png' ),
43264352 url (' #{$_url } @2.png' ));
43274353 }
43284354
43294355 & .insertion-cursor#{$s } :dir (ltr ), & .insertion-cursor#{$s } :dir (rtl ) {
4330- $_url : ' #{$assets } /slider-horz-scale-has-marks-above#{$as }#{$asset_suffix } ' ;
4356+ $_url : ' #{$assets } /#{ $asset_prefix } slider-horz-scale-has-marks-above#{$as }#{$asset_suffix } ' ;
43314357 -gtk-icon-source : -gtk-scaled (url (' #{$_url } .png' ),
43324358 url (' #{$_url } @2.png' ));
43334359 }
0 commit comments