Skip to content

Commit 9c98c90

Browse files
Friedolinofundamental
Friedolino
authored andcommitted
improve automation layout
1 parent 2b9bce8 commit 9c98c90

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

src/mruby-zest/example/ClearBox.qml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Widget {
2626
off_color = Theme::ButtonInactive
2727
on_color = Theme::ButtonActive
2828
cs = 0
29-
pad = 1.0/64
29+
pad = 1.0/8
3030
vg.path do |v|
3131
v.rounded_rect(w*pad, h*pad, w*(1-2*pad), h*(1-2*pad), 2)
3232
if(self.value == true)

src/mruby-zest/example/PlotLabelY.qml

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ Widget {
2626
vg.font_size best_height
2727
labels.each_index do |i|
2828
if(i == 0)
29-
vg.text_align NVG::ALIGN_BOTTOM | NVG::ALIGN_LEFT
30-
vg.text(0, h, labels[0].upcase)
29+
vg.text_align NVG::ALIGN_BOTTOM | NVG::ALIGN_RIGHT
30+
vg.text(w/1.5, h, labels[0].upcase)
3131
elsif(i == labels.length-1)
32-
vg.text_align NVG::ALIGN_TOP | NVG::ALIGN_LEFT
33-
vg.text(0, 0, labels[i].upcase)
32+
vg.text_align NVG::ALIGN_TOP | NVG::ALIGN_RIGHT
33+
vg.text(w/1.5, 0, labels[i].upcase)
3434
else
35-
vg.text_align NVG::ALIGN_MIDDLE | NVG::ALIGN_LEFT
36-
vg.text(0, h*i/(labels.length-1), labels[i].upcase)
35+
vg.text_align NVG::ALIGN_MIDDLE | NVG::ALIGN_RIGHT
36+
vg.text(w/1.5, h*i/(labels.length-1), labels[i].upcase)
3737
end
3838
end
3939
}

src/mruby-zest/example/ZynAutomationParam.qml

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Widget {
4949

5050
ClearBox {
5151
id: clr
52+
label: "clear"
5253
tooltip: "remove this parameter from the slot"
5354
whenValue: lambda {$remote.action(param.extern + "clear")}
5455
}

0 commit comments

Comments
 (0)