themes.qsrc 2.8 KB

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