Skip to content

Commit

Permalink
gauge ui update
Browse files Browse the repository at this point in the history
  • Loading branch information
LordOfDragons committed Sep 19, 2024
1 parent 91eb6f5 commit 17dec08
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 8 deletions.
20 changes: 14 additions & 6 deletions dstestproject/data/guithemes/ui.guitheme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,28 @@
<!-- scrollbars -->
<designer name='ProgressGauge.Gauge1' type='ProgressGauge'>
<canvasCreator parameter='normal.canvas' type='Image'>
<image parameter='image'>test1/dial/background.webp</image>
<image parameter='image'>test1/gauge/background.webp</image>
</canvasCreator>
<canvasCreator parameter='normal.dial' type='Image'>
<image parameter='image'>test1/dial/dial.webp</image>
<canvasCreator parameter='normal.gauge' type='Image'>
<image parameter='image'>test1/gauge/gauge.webp</image>
</canvasCreator>
<canvasCreator parameter='normal.blend' type='Image'>
<image parameter='image'>test1/dial/blend.webp</image>
<image parameter='image'>test1/gauge/blend.webp</image>
</canvasCreator>
<float parameter='blendWidth'>0</float>
<float parameter='normal.blendWidth'>0</float>
<point parameter='normal.minimumSize' x='64' y='64'/>
</designer>

<designer name='ProgressGauge.Gauge2' extendNamed='ProgressGauge.Gauge1'>
<float parameter='blendWidth'>0.2</float>
<float parameter='normal.blendWidth'>0.25</float>
</designer>

<designer name='ProgressGauge.Gauge3' extendNamed='ProgressGauge.Gauge1'>
<float parameter='normal.blendWidth'>0.5</float>
</designer>

<designer name='ProgressGauge.Gauge4' extendNamed='ProgressGauge.Gauge1'>
<float parameter='normal.blendWidth'>1</float>
</designer>


Expand Down
6 changes: 4 additions & 2 deletions dstestproject/data/scripts/WindowScrollbars.ds
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ class WindowScrollbars extends Window
p.addWidget(ScrollPanel.new(textArea))

p.addWidget(Panel.new(FlowLayout.new(LayoutAxis.x, 5), block Panel p2
p2.addWidget(ProgressGauge.new(modelScroll, "ProgressDial.Gauge1"))
p2.addWidget(ProgressGauge.new(modelScroll, "ProgressDial.Gauge2"))
p2.addWidget(ProgressGauge.new(modelProgress, "ProgressGauge.Gauge1"))
p2.addWidget(ProgressGauge.new(modelProgress, "ProgressGauge.Gauge2"))
p2.addWidget(ProgressGauge.new(modelProgress, "ProgressGauge.Gauge3"))
p2.addWidget(ProgressGauge.new(modelProgress, "ProgressGauge.Gauge4"))
end))
end), BorderLayout.Area.content)
end
Expand Down
Binary file removed dstestproject/develop/vorlage/dial.svgz
Binary file not shown.
Binary file added dstestproject/develop/vorlage/gauge.svgz
Binary file not shown.

0 comments on commit 17dec08

Please sign in to comment.