Skip to content

Commit

Permalink
Default Style|Client: Use gui.dpiScaledImagePath()
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 14, 2014
1 parent 238ffa1 commit f6e01a7
Showing 1 changed file with 3 additions and 7 deletions.
@@ -1,6 +1,6 @@
# Images for the default UI style

script { import DisplayMode }
script { import gui, DisplayMode }

group window {
image background { path = "graphics/background.jpg" }
Expand Down Expand Up @@ -39,12 +39,8 @@ image input { path = "graphics/input.png" }
image audio { path = "graphics/audio.png" }
image updater { path = "graphics/updater.png" }

group toggle {
image onoff { path = "graphics/toggle-onoff.png" }
group {
condition: DisplayMode.DPI_FACTOR == 2
image onoff { path = "graphics/toggle-onoff@2x.png"}
}
image toggle.onoff {
path $= gui.dpiScaledImagePath("graphics/toggle-onoff.png")
}

group progress {
Expand Down

0 comments on commit f6e01a7

Please sign in to comment.