File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/Widgets/MultitaskingView Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,9 @@ public class Gala.WindowClone : ActorTarget, RootTarget {
127127 add_action (drag_action);
128128 }
129129
130- active_shape = new ActiveShape ();
130+ active_shape = new ActiveShape (monitor_scale );
131131 active_shape. opacity = 0 ;
132+ bind_property (" monitor-scale" , active_shape, " monitor-scale" );
132133
133134 clone_container = new Clutter .Actor () {
134135 pivot_point = { 0.5f , 0.5f }
@@ -674,8 +675,16 @@ public class Gala.WindowClone : ActorTarget, RootTarget {
674675 private const int BORDER_RADIUS = 16 ;
675676 private const double COLOR_OPACITY = 0.8 ;
676677
678+ public float monitor_scale { get ; construct set ; }
679+
680+ public ActiveShape (float monitor_scale) {
681+ Object (monitor_scale: monitor_scale);
682+ }
683+
677684 construct {
678- add_effect (new RoundedCornersEffect (BORDER_RADIUS , 1.0f ));
685+ var rounded_corners_effect = new RoundedCornersEffect (BORDER_RADIUS , monitor_scale);
686+ bind_property (" monitor-scale" , rounded_corners_effect, " monitor-scale" );
687+ add_effect (rounded_corners_effect);
679688 }
680689
681690 public void update_color () {
You can’t perform that action at this time.
0 commit comments