Skip to content

Commit

Permalink
Removed progress in hairline. Removed scrolling in Regular Cleartext,…
Browse files Browse the repository at this point in the history
… it autoexpands. Scrolling for right align improved in Pure. Controls hide on refresh.
  • Loading branch information
Joshua Velasco committed Mar 2, 2018
1 parent e063702 commit 528e839
Show file tree
Hide file tree
Showing 8 changed files with 94 additions and 36 deletions.
Binary file removed @Resources/Marquee.lua
Binary file not shown.
2 changes: 1 addition & 1 deletion @Resources/constant.inc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Variables]

currentVersion=420
currentVersion=500

baseColumn1=42
baseColumn2=220
Expand Down
53 changes: 32 additions & 21 deletions @Resources/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--
-- Thank you very much.
--
-- Last modified by Redsaph on October 10, 2017
-- Last modified by Redsaph on February 16, 2018
--

playerTable = {
Expand Down Expand Up @@ -89,34 +89,45 @@ function alignLeft()
SKIN:Bang('!WriteKeyValue Variables mediaTextAlignment "LeftBottom" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables mediaTextAlignmentPure "Left" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables interfaceTextAlignment "Right" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables nowTextPositionHor "(#Size#*0.185)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables hairlinePositionHor "(#Size#*0.215)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables topTextPositionHor "(#Size#*0.2475)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables playCtrlPositionHor "(#Size#*0.1)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables settingsTextPositionHor "(#Size#*0.115)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables indicatorPositionHor "(#Size#*0.07)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables indicatorPositionHorPure "(#Size#*0.04)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables conflictIndicatorPositionHor "(#Size#*0.03)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables conflictIndicatorPositionHorPure "(#Size#*0.08)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables nowTextPositionHor "(#skinSize#*0.185)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables hairlinePositionHor "(#skinSize#*0.215)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables topTextPositionHor "(#skinSize#*0.2475)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables playCtrlPositionHor "(#skinSize#*0.1)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables settingsTextPositionHor "(#skinSize#*0.115)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables indicatorPositionHor "(#skinSize#*0.07)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables indicatorPositionHorPure "(#skinSize#*0.04)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables conflictIndicatorPositionHor "(#skinSize#*0.03)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables conflictIndicatorPositionHorPure "(#skinSize#*0.08)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables currentlySetAlign left')
SKIN:Bang('!WriteKeyValue Variables alignRight 0 "#@#variables.inc"')
SKIN:Bang('!Refresh #CURRENTCONFIG#')
end -- ends alignLeft

function alignRight()
SKIN:Bang('!WriteKeyValue Variables mediaTextPositionHor "#SIZE#" "#@#variables.inc"')
function alignRight()
skinSize = SKIN:ParseFormula(SKIN:GetVariable('skinSize'))
bottomTextWidth = tonumber(SKIN:GetVariable('bottomTextWidth'))

if bottomTextWidth > skinSize then
multiplier = bottomTextWidth
else
multiplier = skinSize
end

SKIN:Bang('!WriteKeyValue Variables mediaTextPositionHor "#skinSize#" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables mediaTextAlignment "RightBottom" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables mediaTextAlignmentPure "Right" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables interfaceTextAlignment "Left" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables nowTextPositionHor "(#Size#*0.915)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables hairlinePositionHor "(#Size#*0.8825)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables topTextPositionHor "(#Size#*0.855)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables playCtrlPositionHor "(#Size#*1.0)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables settingsTextPositionHor "(#Size#*0.98)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables indicatorPositionHor "(#Size#*1.03)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables indicatorPositionHorPure "(#Size#*0.97)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables conflictIndicatorPositionHor "(#Size#*1.07)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables conflictIndicatorPositionHorPure "(#Size#*0.93)" "#@#variables.inc"')

SKIN:Bang('!WriteKeyValue Variables nowTextPositionHor "(' .. multiplier .. '+(' .. skinSize ..'*0.15))" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables hairlinePositionHor "(' .. multiplier .. '+(' .. skinSize ..'*0.12))" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables topTextPositionHor "(' .. multiplier .. '+(' .. skinSize ..'*0.09))" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables playCtrlPositionHor "(' .. multiplier .. '+(' .. skinSize ..'*0.235))" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables settingsTextPositionHor "(' .. multiplier .. '+(' .. skinSize ..'*0.225))" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables indicatorPositionHor "(' .. multiplier .. '+(' .. skinSize ..'*0.265))" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables indicatorPositionHorPure "(#skinSize#*0.97)" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables conflictIndicatorPositionHor "(' .. multiplier .. '+(' .. skinSize ..'*0.21))" "#@#variables.inc"')
SKIN:Bang('!WriteKeyValue Variables conflictIndicatorPositionHorPure "(#skinSize#*0.93)" "#@#variables.inc"')

SKIN:Bang('!WriteKeyValue Variables currentlySetAlign right')
SKIN:Bang('!WriteKeyValue Variables alignRight 1 "#@#variables.inc"')
SKIN:Bang('!Refresh #CURRENTCONFIG#')
Expand Down
29 changes: 15 additions & 14 deletions @Resources/variables.inc
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
[Variables]

skinSize=(#SCREENAREAHEIGHT#*0.5)
bottomTextWidth=157


Player=Spotify
alignRight=0

activePlugin=Spotify

Size=(#WORKAREAWIDTH#*0.3)

; 0 = MUSIC, 1 = SPOTIFY, 2 = WEBNOWPLAYING
MusicSwitch=1
playerController=Title0
currentlySetName=Windows Media Player
currentlySetPlayer=WMP

adaptiveHideActive=1
adaptiveHideActive=0

stowAway=0
stowAwayName=NULL

topText=mArtist
bottomText=mTitle

regularTopTextMeasure=LuaTopText
regularBottomTextMeasure=LuaBottomText
disableScroll=0

removeExtraFromText=1
removeExtraFromText=0

thinFont=Metropolis Extra Light
thickFont=Metropolis Medium
Expand All @@ -34,12 +35,12 @@ mediaTextPositionHor=0
mediaTextAlignment=LeftBottom
mediaTextAlignmentPure=Left
interfaceTextAlignment=Right
nowTextPositionHor=(#Size#*0.185)
hairlinePositionHor=(#Size#*0.215)
topTextPositionHor=(#Size#*0.2475)
playCtrlPositionHor=(#Size#*0.1)
settingsTextPositionHor=(#Size#*0.115)
indicatorPositionHor=(#Size#*0.07)
indicatorPositionHorPure=(#Size#*0.04)
conflictIndicatorPositionHor=(#Size#*0.03)
conflictIndicatorPositionHorPure=(#Size#*0.08)
nowTextPositionHor=(#skinSize#*0.19)
hairlinePositionHor=(#skinSize#*0.22)
topTextPositionHor=(#skinSize#*0.25)
playCtrlPositionHor=(#skinSize#*0.11)
settingsTextPositionHor=(#skinSize#*0.115)
indicatorPositionHor=(#skinSize#*0.08)
indicatorPositionHorPure=(#skinSize#*0.04)
conflictIndicatorPositionHor=(#skinSize#*0.04)
conflictIndicatorPositionHorPure=(#skinSize#*0.08)
Binary file modified Cleartext Pure.ini
Binary file not shown.
Binary file modified Cleartext.ini
Binary file not shown.
Binary file modified Settings/Settings.ini
Binary file not shown.
46 changes: 46 additions & 0 deletions _Defaults/defaultvariables.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
[Variables]

skinSize=(#SCREENAREAHEIGHT#*0.5)
bottomTextWidth=330


Player=Spotify
alignRight=0

activePlugin=Spotify


; 0 = MUSIC, 1 = SPOTIFY, 2 = WEBNOWPLAYING
MusicSwitch=1
playerController=Title0
currentlySetName=Windows Media Player
currentlySetPlayer=WMP

adaptiveHideActive=1

stowAway=0
stowAwayName=NULL

topText=mArtist
bottomText=mTitle

disableScroll=0

removeExtraFromText=0

thinFont=Metropolis Extra Light
thickFont=Metropolis Medium

mediaTextPositionHor=0
mediaTextAlignment=LeftBottom
mediaTextAlignmentPure=Left
interfaceTextAlignment=Right
nowTextPositionHor=(#skinSize#*0.19)
hairlinePositionHor=(#skinSize#*0.22)
topTextPositionHor=(#skinSize#*0.25)
playCtrlPositionHor=(#skinSize#*0.11)
settingsTextPositionHor=(#skinSize#*0.115)
indicatorPositionHor=(#skinSize#*0.08)
indicatorPositionHorPure=(#skinSize#*0.04)
conflictIndicatorPositionHor=(#skinSize#*0.04)
conflictIndicatorPositionHorPure=(#skinSize#*0.08)

0 comments on commit 528e839

Please sign in to comment.