File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ component BrushTypeSelector {
30
30
31
31
in-out property <PickerTab > active-tab : PickerTab.color;
32
32
33
+ changed active-tab => {
34
+ WindowManager.hide-color-stop-picker();
35
+ }
36
+
33
37
HorizontalLayout {
34
38
padding-left : EditorSizeSettings.small-margin;
35
39
alignment : start;
@@ -1135,7 +1139,7 @@ component ColorPicker inherits DraggablePanel {
1135
1139
callback close <=> t-close.clicked;
1136
1140
1137
1141
changed current-color => {
1138
- if widget-mode == WidgetMode.preview {
1142
+ if widget-mode == WidgetMode.preview && PickerData.current-brush-kind == BrushKind.solid {
1139
1143
WindowManager.update-preview-value(Api.color-to-data(root .current-color).text);
1140
1144
}
1141
1145
}
Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ export global PickerData {
35
35
}
36
36
}
37
37
38
+ changed current-brush-kind => {
39
+ if WindowManager.widget-mode == WidgetMode.preview {
40
+ WindowManager.update-brush();
41
+ }
42
+ }
43
+
38
44
public function set-current-stop-as-color() {
39
45
hue = current-gradient-stops[current-stop-index].color.to-hsv().hue;
40
46
saturation = current-gradient-stops[current-stop-index].color.to-hsv().saturation;
@@ -158,6 +164,7 @@ export global WindowManager {
158
164
}
159
165
PickerData.current-brush = property -value .value-brush ;
160
166
PickerData.current-gradient-stops = property -value .gradient-stops ;
167
+ PickerData.current-angle = property -value .value-float ;
161
168
showing-color-picker = true;
162
169
}
163
170
}
You can’t perform that action at this time.
0 commit comments