Skip to content

Commit 194029c

Browse files
authored
Merge pull request #2871 from alicevision/fix/colorSelectorPosition
[Controls] Horizontally center the Color Selector with respect to the tool button
2 parents 36ace46 + 9c92c58 commit 194029c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

meshroom/ui/qml/Controls/ColorSelector.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ MaterialToolButton {
3333
"#C16162",
3434
]
3535

36-
// When a color gets selected/choosen
36+
// When a color gets selected/chosen
3737
signal colorSelected(var color)
3838

3939
// Toggles the visibility of the popup
@@ -64,9 +64,9 @@ MaterialToolButton {
6464
padding: 4
6565
width: (root.height * 4) + (padding * 4)
6666

67-
// center the current color
67+
// Center the current color on the tool button
6868
y: -height
69-
x: -width + root.width + padding
69+
x: -width / 2 + (root.width + padding) / 2
7070

7171
// Layout of the Colors
7272
Grid {

0 commit comments

Comments
 (0)