themes.qsrc 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. # themes
  2. !night_mode 0: dynamic
  3. !night_mode 1: black
  4. !night_mode 2: grey
  5. !night_mode 3: white
  6. !night_mode 99: no theme (may break tables)
  7. !outdoor theme 0 is dynamic, and changes colour with time of day.
  8. if $ARGS[0] = 'outdoors':
  9. if night_mode = 0:
  10. if (DayStage = 1) or (DayStage = 6) :
  11. bcolor = rgb(BColorBase-BColorBase/4, BColorBase-BColorBase/4, BColorBase)
  12. lcolor = rgb(206, 90, 205)
  13. elseif (DayStage = 3) or (DayStage = 4) :
  14. bcolor = rgb(BColorBase, BColorBase-BColorBase/4, BColorBase-BColorBase/4)
  15. lcolor = rgb(56, 90, 205)
  16. else
  17. bcolor = rgb(BColorBase, BColorBase, BColorBase)
  18. lcolor = rgb(106, 90, 205)
  19. end
  20. if BColorBase <= 160 :
  21. fcolor = rgb(255, 255, 255)
  22. else
  23. fcolor = rgb(0, 0, 0)
  24. end
  25. elseif night_mode = 1:
  26. fcolor = rgb(255, 255, 255)
  27. bcolor = rgb(0, 0, 0)
  28. lcolor = rgb(106, 90, 205)
  29. elseif night_mode = 2:
  30. fcolor = rgb(255, 255, 255)
  31. bcolor = rgb(20, 20, 20)
  32. lcolor = rgb(106, 90, 205)
  33. elseif night_mode = 3:
  34. bcolor = rgb(255, 255, 255)
  35. lcolor = rgb(106, 90, 205)
  36. fcolor = rgb(0, 0, 0)
  37. elseif night_mode = 99:
  38. killvar 'fcolor'
  39. killvar 'bcolor'
  40. killvar 'lcolor'
  41. end
  42. end
  43. !indoor themes are static.
  44. if $ARGS[0] = 'indoors':
  45. if night_mode = 0:
  46. fcolor = rgb(0, 0, 0)
  47. bcolor = rgb(255, 255, 255)
  48. lcolor = rgb(106, 90, 205)
  49. elseif night_mode = 1:
  50. fcolor = rgb(255, 255, 255)
  51. bcolor = rgb(0, 0, 0)
  52. lcolor = rgb(106, 90, 205)
  53. elseif night_mode = 2:
  54. fcolor = rgb(255, 255, 255)
  55. bcolor = rgb(20, 20, 20)
  56. lcolor = rgb(106, 90, 205)
  57. elseif night_mode = 99:
  58. killvar 'fcolor'
  59. killvar 'bcolor'
  60. killvar 'lcolor'
  61. end
  62. gs 'indoors'
  63. end
  64. !food_menu themes are only for menu table backgrounds.
  65. if $ARGS[0] = 'food_menu':
  66. if night_mode = 0:
  67. $fcolor1 = '#000000'
  68. $bcolor1 = '#FFFFFF'
  69. $bcolor2 = '#e6f2ff'
  70. $bcolor3 = '#FFFFFF'
  71. elseif night_mode = 1:
  72. $fcolor1 = '#FFFFFF'
  73. $bcolor1 = '#202020'
  74. $bcolor2 = '#303030'
  75. $bcolor3 = '#000000'
  76. elseif night_mode = 2:
  77. $fcolor1 = '#FFFFFF'
  78. $bcolor1 = '#202020'
  79. $bcolor2 = '#303030'
  80. $bcolor3 = '#141414'
  81. elseif night_mode = 99:
  82. killvar '$fcolor1'
  83. killvar '$bcolor1'
  84. killvar '$bcolor2'
  85. killvar '$bcolor3'
  86. end
  87. end
  88. !clothing th themes are for table backgrounds. 1 is first colour, 2 is second colour.
  89. !eg gs 'themes', 'clothing', 1
  90. if $ARGS[0] = 'clothing':
  91. if ARGS[1] = 1:
  92. if night_mode = 0:
  93. $bgcolor = iif($bgcolor='#f3f4ee','#ffffff','#f3f4ee')
  94. elseif night_mode = 1:
  95. $bgcolor = iif($bgcolor='#0C0B11','#000000','#0C0B11')
  96. elseif night_mode = 2:
  97. $bgcolor = iif($bgcolor='#0C0B11','#141414','#0C0B11')
  98. elseif night_mode = 99:
  99. killvar 'bgcolor'
  100. end
  101. elseif ARGS[1] = 2:
  102. if night_mode = 0:
  103. $bgcolor = iif($bgcolor='#f3f4ee','#ffffff','#f3f4ee')
  104. elseif night_mode = 1:
  105. $bgcolor = iif($bgcolor='#0C0B11','#000000','#0C0B11')
  106. elseif night_mode = 2:
  107. $bgcolor = iif($bgcolor='#0C0B11','#202020','#0C0B11')
  108. elseif night_mode = 99:
  109. killvar '$bgcolor'
  110. end
  111. end
  112. end
  113. --- themes ---------------------------------