Skip to content

Commit e9201b3

Browse files
YohYamasakiKeavon
authored andcommitted
Swap Reflect and Repeat order in UI radio buttons
1 parent ea23ab0 commit e9201b3

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

editor/src/messages/portfolio/document/node_graph/node_properties.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2009,7 +2009,7 @@ pub(crate) fn fill_properties(node_id: NodeId, context: &mut NodePropertiesConte
20092009

20102010
let mut spread_methods_row: Vec<WidgetInstance> = vec![];
20112011

2012-
let spread_method_entries = [GradientSpreadMethod::Pad, GradientSpreadMethod::Repeat, GradientSpreadMethod::Reflect]
2012+
let spread_method_entries = [GradientSpreadMethod::Pad, GradientSpreadMethod::Reflect, GradientSpreadMethod::Repeat]
20132013
.iter()
20142014
.map(|&spread_method| {
20152015
let gradient_for_input = gradient_for_closure.clone();

editor/src/messages/tool/tool_messages/gradient_tool.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,15 @@ impl LayoutHolder for GradientTool {
197197
}
198198
.into()
199199
}),
200-
RadioEntryData::new("Repeat").label("Repeat").tooltip_label("Repeat").on_update(move |_| {
200+
RadioEntryData::new("Reflect").label("Reflect").tooltip_label("Reflect").on_update(move |_| {
201201
GradientToolMessage::UpdateOptions {
202-
options: GradientOptionsUpdate::SpreadMethod(GradientSpreadMethod::Repeat),
202+
options: GradientOptionsUpdate::SpreadMethod(GradientSpreadMethod::Reflect),
203203
}
204204
.into()
205205
}),
206-
RadioEntryData::new("Reflect").label("Reflect").tooltip_label("Reflect").on_update(move |_| {
206+
RadioEntryData::new("Repeat").label("Repeat").tooltip_label("Repeat").on_update(move |_| {
207207
GradientToolMessage::UpdateOptions {
208-
options: GradientOptionsUpdate::SpreadMethod(GradientSpreadMethod::Reflect),
208+
options: GradientOptionsUpdate::SpreadMethod(GradientSpreadMethod::Repeat),
209209
}
210210
.into()
211211
}),

node-graph/libraries/vector-types/src/gradient.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ impl GradientStops {
341341
pub enum GradientSpreadMethod {
342342
#[default]
343343
Pad,
344-
Repeat,
345344
Reflect,
345+
Repeat,
346346
}
347347

348348
impl GradientSpreadMethod {

0 commit comments

Comments
 (0)