From 1e0887f39728e11b9f1211dad058d703d15a2507 Mon Sep 17 00:00:00 2001 From: Jack-Myth Date: Fri, 20 Dec 2019 19:22:48 +0800 Subject: [PATCH] Change the style of Download ProgressBar --- resource/layout/appdownloadpanel.layout | 8 +++++--- resource/styles/jackmyth.styles | 2 ++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/resource/layout/appdownloadpanel.layout b/resource/layout/appdownloadpanel.layout index 1f04a4a..53621ca 100644 --- a/resource/layout/appdownloadpanel.layout +++ b/resource/layout/appdownloadpanel.layout @@ -4,6 +4,7 @@ { // this just sets the height appdownloadpanel { tall="110" style=panelStyle } + downloadprogressbar { controlname="ProgressBar" zpos="-1" style="SlimProgressBar" barinset=0 continuous=1 group="ShowWhileDownloading" style="SlimProgressBar" } // image spacer { controlname="Panel" } @@ -14,7 +15,6 @@ namelabel { controlname="Label" labelText="#steam_downloads_gamename" style="ModuleHeading" } dashlabel { controlname="Label" labelText="" } launchbutton { controlname="Button" style="DetailsLaunchButton" labelText="#Steam_LaunchGame" zpos="1" } - downloadprogressbar { controlname="ProgressBar" style="SlimProgressBar" barinset=0 continuous=1 group="ShowWhileDownloading" style="SlimProgressBar" } settingslink { controlname="URLlabel" style="settingslink" } // right-mid column @@ -240,9 +240,11 @@ SlimProgressBar { + textcolor="JackMyth.DownloadProgress" + bgcolor=none render_bg { - 0="fill( x0, y0, x1, y1, Progress.Back )" + 0="fill( x0, y0, x1, y1, none )" } render { @@ -263,9 +265,9 @@ // left column place { control="spacer" } + place { control="downloadprogressbar" start= spacer dir=down margin-left=0 height=max width=max } place { control="gameimage" margin-left=15 margin-top=30 width=184 height=69 } place { control="workshopbanner" margin-left=15 margin-top=30 width=184 height=69 } - place { control="downloadprogressbar" start=gameimage dir=down width=184 height=5 } // left-mid column place { control="namelabel" region=column2 margin-top=24 margin-left=0 } diff --git a/resource/styles/jackmyth.styles b/resource/styles/jackmyth.styles index 09ec869..f2e37be 100644 --- a/resource/styles/jackmyth.styles +++ b/resource/styles/jackmyth.styles @@ -13,6 +13,8 @@ jackmyth.styles JackMyth.HalfOpacityInverse = "0 0 0 150" JackMyth.OpacityInverse = "0 0 0 200" JackMyth.LittleTranslucent180Inverse="0 0 0 180" + JackMyth.DownloadProgress="0 120 255 100" + JackMyth.DownloadProgressBack="255 255 255 0" } styles {