Advertisement
Guest User

file

a guest
Feb 28th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 36.17 KB | None | 0 0
  1. ui.style = {}
  2. ---@return style
  3. local function newStyle()
  4.     ---@class style
  5.     local this = {}
  6.     ---@class style.label
  7.     local label = {}
  8.     label.align = 1
  9.     ---@class style.label.theme
  10.     local label_normal = {prefix = "", suffix = "", tC = colors.black, tBG = colors.white}
  11.     ---@type style.label.theme
  12.     local label_disabled = {prefix = "", suffix = "", tC = colors.gray, tBG = colors.white}
  13.     ---@type style.label.theme
  14.     local label_selected = {prefix = "", suffix = "", tC = colors.black, tBG = colors.orange}
  15.     label.nTheme = label_normal
  16.     label.dTheme = label_disabled
  17.     label.sTheme = label_selected
  18.     this.label = label
  19.  
  20.     ---@class style.button
  21.     local button = {}
  22.     button.align = 5
  23.     ---@class style.button.theme
  24.     local button_normal = {
  25.         tC = colors.lightBlue,
  26.         tBG = colors.blue,
  27.         bC = colors.lightBlue,
  28.         bBG = colors.blue,
  29.         b = {
  30.             {},
  31.             {},
  32.             {},
  33.             {">", " "},
  34.             {" "},
  35.             {" ", "<"},
  36.             {},
  37.             {},
  38.             {}
  39.         }
  40.     }
  41.     ---@type style.button.theme
  42.     local button_disabled = {
  43.         tC = colors.lightGray,
  44.         tBG = colors.gray,
  45.         bC = colors.lightGray,
  46.         bBG = colors.gray,
  47.         b = {
  48.             {},
  49.             {},
  50.             {},
  51.             {"x", " "},
  52.             {" "},
  53.             {" ", "x"},
  54.             {},
  55.             {},
  56.             {}
  57.         }
  58.     }
  59.     ---@type style.button.theme
  60.     local button_selected = {
  61.         tC = colors.white,
  62.         tBG = colors.blue,
  63.         bC = colors.white,
  64.         bBG = colors.blue,
  65.         b = {
  66.             {},
  67.             {},
  68.             {},
  69.             {"\16", " "},
  70.             {" "},
  71.             {" ", "\17"},
  72.             {},
  73.             {},
  74.             {}
  75.         }
  76.     }
  77.     ---@type style.button.theme
  78.     local button_pressed = {
  79.         tC = colors.white,
  80.         tBG = colors.lightBlue,
  81.         bC = colors.white,
  82.         bBG = colors.lightBlue,
  83.         b = {
  84.             {},
  85.             {},
  86.             {},
  87.             {" ", "\16"},
  88.             {" "},
  89.             {"\17", " "},
  90.             {},
  91.             {},
  92.             {}
  93.         }
  94.     }
  95.     button.nTheme = button_normal
  96.     button.dTheme = button_disabled
  97.     button.sTheme = button_selected
  98.     button.pTheme = button_pressed
  99.     this.button = button
  100.  
  101.     ---@class style.toggleButton
  102.     local toggleButton = {}
  103.     toggleButton.align = 1
  104.     ---@class style.toggleButton.theme
  105.     local toggleButton_normal = {
  106.         tC = colors.black,
  107.         tBG = colors.white,
  108.         uncheckedL = {" ", "O", " "},
  109.         uncheckedLC = {colors.white, colors.lightBlue, colors.white},
  110.         uncheckedLBG = {colors.white, colors.blue, colors.white},
  111.         checkedL = {" ", "X", " "},
  112.         checkedLC = {colors.white, colors.orange, colors.white},
  113.         checkedLBG = {colors.white, colors.red, colors.white}
  114.     }
  115.     ---@type style.toggleButton.theme
  116.     local toggleButton_disabled = {
  117.         tC = colors.gray,
  118.         tBG = colors.white,
  119.         uncheckedL = {"*", "O", "*"},
  120.         uncheckedLC = {colors.white, colors.gray, colors.white},
  121.         uncheckedLBG = {colors.gray, colors.lightGray, colors.gray},
  122.         checkedL = {"*", "X", "*"},
  123.         checkedLC = {colors.white, colors.gray, colors.white},
  124.         checkedLBG = {colors.gray, colors.lightGray, colors.gray}
  125.     }
  126.     ---@type style.toggleButton.theme
  127.     local toggleButton_selected = {
  128.         tC = colors.orange,
  129.         tBG = colors.white,
  130.         uncheckedL = {">", "O", "< "},
  131.         uncheckedLC = {colors.orange, colors.white, colors.orange},
  132.         uncheckedLBG = {colors.white, colors.blue, colors.white},
  133.         checkedL = {">", "X", "<"},
  134.         checkedLC = {colors.orange, colors.white, colors.orange},
  135.         checkedLBG = {colors.white, colors.red, colors.white}
  136.     }
  137.     ---@type style.toggleButton.theme
  138.     local toggleButton_pressed = {
  139.         tC = colors.orange,
  140.         tBG = colors.white,
  141.         uncheckedL = {">", "X", "<"},
  142.         uncheckedLC = {colors.orange, colors.white, colors.orange},
  143.         uncheckedLBG = {colors.white, colors.orange, colors.white},
  144.         checkedL = {">", "O", "<"},
  145.         checkedLC = {colors.orange, colors.white, colors.orange},
  146.         checkedLBG = {colors.white, colors.lightBlue, colors.white}
  147.     }
  148.     toggleButton.nTheme = toggleButton_normal
  149.     toggleButton.dTheme = toggleButton_disabled
  150.     toggleButton.sTheme = toggleButton_selected
  151.     toggleButton.pTheme = toggleButton_pressed
  152.     this.toggleButton = toggleButton
  153.  
  154.     ---@class style.slider
  155.     local slider = {}
  156.     ---@class style.slider.theme
  157.     local slider_normal = {
  158.         sliderT = {"|", "#", "|"},
  159.         sliderTC = {colors.lightGray, colors.lightGray, colors.lightGray},
  160.         sliderTBG = {colors.gray, colors.gray, colors.gray},
  161.         handleL = {"|", "#", "|"},
  162.         handleLC = {colors.lightGray, colors.gray, colors.lightGray},
  163.         handleLBG = {colors.lightGray, colors.black, colors.lightGray}
  164.     }
  165.     ---@class style.slider.button
  166.     local slider_normal_buttonPositive = {}
  167.     ---@class style.slider.button.theme
  168.     local slider_normal_buttonPositive_normal = {
  169.         t = {"[", "A", "]"},
  170.         tC = {colors.lightBlue, colors.lightBlue, colors.lightBlue},
  171.         tBG = {colors.blue, colors.blue, colors.blue}
  172.     }
  173.     ---@type style.slider.button.theme
  174.     local slider_normal_buttonPositive_disabled = {
  175.         t = {"[", "A", "]"},
  176.         tC = {colors.lightGray, colors.lightGray, colors.lightGray},
  177.         tBG = {colors.gray, colors.gray, colors.gray}
  178.     }
  179.     ---@type style.slider.button.theme
  180.     local slider_normal_buttonPositive_selected = {
  181.         t = {"[", "A", "]"},
  182.         tC = {colors.white, colors.white, colors.white},
  183.         tBG = {colors.blue, colors.blue, colors.blue}
  184.     }
  185.     slider_normal_buttonPositive.nTheme = slider_normal_buttonPositive_normal
  186.     slider_normal_buttonPositive.dTheme = slider_normal_buttonPositive_disabled
  187.     slider_normal_buttonPositive.sTheme = slider_normal_buttonPositive_selected
  188.     ---@type style.slider.button
  189.     local slider_normal_buttonNegative = {}
  190.     ---@type style.slider.button.theme
  191.     local slider_normal_buttonNegative_normal = {
  192.         t = {"[", "A", "]"},
  193.         tC = {colors.lightBlue, colors.lightBlue, colors.lightBlue},
  194.         tBG = {colors.blue, colors.blue, colors.blue}
  195.     }
  196.     ---@type style.slider.button.theme
  197.     local slider_normal_buttonNegative_disabled = {
  198.         t = {"[", "A", "]"},
  199.         tC = {colors.lightGray, colors.lightGray, colors.lightGray},
  200.         tBG = {colors.gray, colors.gray, colors.gray}
  201.     }
  202.     ---@type style.slider.button.theme
  203.     local slider_normal_buttonNegative_selected = {
  204.         t = {"[", "A", "]"},
  205.         tC = {colors.white, colors.white, colors.white},
  206.         tBG = {colors.blue, colors.blue, colors.blue}
  207.     }
  208.     slider_normal_buttonNegative.nTheme = slider_normal_buttonNegative_normal
  209.     slider_normal_buttonNegative.dTheme = slider_normal_buttonNegative_disabled
  210.     slider_normal_buttonNegative.sTheme = slider_normal_buttonNegative_selected
  211.     slider_normal.buttonP = slider_normal_buttonPositive
  212.     slider_normal.buttonN = slider_normal_buttonNegative
  213.     ---@type style.slider.theme
  214.     local slider_disabled = {
  215.         sliderT = {"|", "#", "|"},
  216.         sliderTC = {colors.lightGray, colors.lightGray, colors.lightGray},
  217.         sliderTBG = {colors.gray, colors.gray, colors.gray},
  218.         handleL = {"|", "#", "|"},
  219.         handleLC = {colors.lightGray, colors.gray, colors.lightGray},
  220.         handleLBG = {colors.lightGray, colors.black, colors.lightGray}
  221.     }
  222.     ---@type style.slider.button
  223.     local slider_disabled_buttonPositive = {}
  224.     ---@type style.slider.button
  225.     local slider_disabled_buttonNegative = {}
  226.     slider_disabled_buttonPositive.dTheme = slider_normal_buttonPositive_disabled
  227.     slider_disabled_buttonNegative.dTheme = slider_normal_buttonNegative_disabled
  228.     slider_disabled.buttonP = slider_disabled_buttonPositive
  229.     slider_disabled.buttonN = slider_disabled_buttonNegative
  230.     slider.nTheme = slider_normal
  231.     slider.dTheme = slider_disabled
  232.     this.slider = slider
  233.  
  234.     ---@class style.textBox
  235.     local textBox = {}
  236.     ---@type style.label
  237.     textBox.label = table.copy(this.label)
  238.     textBox.label.nTheme.tBG = colors.green
  239.     textBox.label.nTheme.tC = colors.lime
  240.     textBox.label.dTheme.tBG = colors.gray
  241.     textBox.label.dTheme.tC = colors.lightGray
  242.     textBox.label.dTheme.prefix = "*"
  243.     textBox.label.dTheme.suffix = "*"
  244.     textBox.label.sTheme.tBG = colors.green
  245.     textBox.label.sTheme.tC = colors.yellow
  246.     textBox.label.sTheme.prefix = ">"
  247.     textBox.label.sTheme.suffix = "<"
  248.     ---@type style.label
  249.     textBox.text = table.copy(this.label)
  250.     textBox.text.nTheme.tBG = colors.white
  251.     textBox.text.nTheme.tC = colors.black
  252.     textBox.text.dTheme.tBG = colors.white
  253.     textBox.text.dTheme.tC = colors.black
  254.     textBox.text.sTheme.tBG = colors.white
  255.     textBox.text.sTheme.tC = colors.black
  256.     ---@type style.slider
  257.     textBox.slider = table.copy(this.slider)
  258.     textBox.slider.nTheme.buttonP.nTheme.t = {string.char(30)}
  259.     textBox.slider.nTheme.buttonP.nTheme.tC = {colors.white}
  260.     textBox.slider.nTheme.buttonP.nTheme.tBG = {colors.lime}
  261.     textBox.slider.nTheme.buttonP.sTheme.t = {string.char(30)}
  262.     textBox.slider.nTheme.buttonP.sTheme.tC = {colors.yellow}
  263.     textBox.slider.nTheme.buttonP.sTheme.tBG = {colors.lime}
  264.     textBox.slider.nTheme.buttonP.dTheme.t = {string.char(30)}
  265.     textBox.slider.nTheme.buttonP.dTheme.tC = {colors.gray}
  266.     textBox.slider.nTheme.buttonP.dTheme.tBG = {colors.lime}
  267.     textBox.slider.nTheme.buttonN.nTheme.t = {string.char(31)}
  268.     textBox.slider.nTheme.buttonN.nTheme.tC = {colors.white}
  269.     textBox.slider.nTheme.buttonN.nTheme.tBG = {colors.lime}
  270.     textBox.slider.nTheme.buttonN.sTheme.t = {string.char(31)}
  271.     textBox.slider.nTheme.buttonN.sTheme.tC = {colors.yellow}
  272.     textBox.slider.nTheme.buttonN.sTheme.tBG = {colors.lime}
  273.     textBox.slider.nTheme.buttonN.dTheme.t = {string.char(31)}
  274.     textBox.slider.nTheme.buttonN.dTheme.tC = {colors.gray}
  275.     textBox.slider.nTheme.buttonN.dTheme.tBG = {colors.lime}
  276.     textBox.slider.nTheme.sliderT = {string.char(127)}
  277.     textBox.slider.nTheme.sliderTC = {colors.lightGray}
  278.     textBox.slider.nTheme.sliderTBG = {colors.lime}
  279.     textBox.slider.nTheme.handleL = {"#"}
  280.     textBox.slider.nTheme.handleLC = {colors.gray}
  281.     textBox.slider.nTheme.handleLBG = {colors.green}
  282.     textBox.slider.dTheme.buttonP.dTheme.t = {string.char(30)}
  283.     textBox.slider.dTheme.buttonP.dTheme.tC = {colors.lightGray}
  284.     textBox.slider.dTheme.buttonP.dTheme.tBG = {colors.gray}
  285.     textBox.slider.dTheme.buttonN.dTheme.t = {string.char(31)}
  286.     textBox.slider.dTheme.buttonN.dTheme.tC = {colors.lightGray}
  287.     textBox.slider.dTheme.buttonN.dTheme.tBG = {colors.gray}
  288.     textBox.slider.dTheme.sliderT = {string.char(127)}
  289.     textBox.slider.dTheme.sliderTC = {colors.lightGray}
  290.     textBox.slider.dTheme.sliderTBG = {colors.gray}
  291.     textBox.slider.dTheme.handleL = {"#"}
  292.     textBox.slider.dTheme.handleLC = {colors.gray}
  293.     textBox.slider.dTheme.handleLBG = {colors.gray}
  294.     ---@class style.textBox.theme
  295.     local textBox_normal = {
  296.         sTC = colors.white,
  297.         bC = colors.lime,
  298.         bBG = colors.green,
  299.         b = {
  300.             {"+"},
  301.             {"-"},
  302.             {"+"},
  303.             {"|"},
  304.             {" "},
  305.             {"|"},
  306.             {"+", "|", "+"},
  307.             {"-", " ", "-"},
  308.             {"+", "|", "+"}
  309.         }
  310.     }
  311.     ---@type style.textBox.theme
  312.     local textBox_disabled = {
  313.         sTC = colors.white,
  314.         bC = colors.lightGray,
  315.         bBG = colors.gray,
  316.         b = {
  317.             {"+"},
  318.             {"-"},
  319.             {"+"},
  320.             {"|"},
  321.             {" "},
  322.             {"|"},
  323.             {"+", "|", "+"},
  324.             {"-", " ", "-"},
  325.             {"+", "|", "+"}
  326.         }
  327.     }
  328.     ---@type style.textBox.theme
  329.     local textBox_selected = {
  330.         sTC = colors.white,
  331.         bC = colors.lime,
  332.         bBG = colors.green,
  333.         b = {
  334.             {"+"},
  335.             {"-"},
  336.             {"+"},
  337.             {"|"},
  338.             {" "},
  339.             {"|"},
  340.             {"+", "|", "+"},
  341.             {"-", " ", "-"},
  342.             {"+", "|", "+"}
  343.         }
  344.     }
  345.     textBox.nTheme = textBox_normal
  346.     textBox.dTheme = textBox_disabled
  347.     textBox.sTheme = textBox_selected
  348.     this.textBox = textBox
  349.  
  350.     ---@class style.scrollView
  351.     local scrollView = {}
  352.     ---@type style.label
  353.     scrollView.label = table.copy(this.label)
  354.     ---@type style.slider
  355.     scrollView.sliderV = table.copy(this.slider)
  356.     scrollView.sliderV.nTheme.buttonP.nTheme.t = {string.char(30)}
  357.     scrollView.sliderV.nTheme.buttonP.nTheme.tC = {colors.white}
  358.     scrollView.sliderV.nTheme.buttonP.nTheme.tBG = {colors.lime}
  359.     scrollView.sliderV.nTheme.buttonP.sTheme.t = {string.char(30)}
  360.     scrollView.sliderV.nTheme.buttonP.sTheme.tC = {colors.yellow}
  361.     scrollView.sliderV.nTheme.buttonP.sTheme.tBG = {colors.lime}
  362.     scrollView.sliderV.nTheme.buttonP.dTheme.t = {string.char(30)}
  363.     scrollView.sliderV.nTheme.buttonP.dTheme.tC = {colors.gray}
  364.     scrollView.sliderV.nTheme.buttonP.dTheme.tBG = {colors.lime}
  365.     scrollView.sliderV.nTheme.buttonN.nTheme.t = {string.char(31)}
  366.     scrollView.sliderV.nTheme.buttonN.nTheme.tC = {colors.white}
  367.     scrollView.sliderV.nTheme.buttonN.nTheme.tBG = {colors.lime}
  368.     scrollView.sliderV.nTheme.buttonN.sTheme.t = {string.char(31)}
  369.     scrollView.sliderV.nTheme.buttonN.sTheme.tC = {colors.yellow}
  370.     scrollView.sliderV.nTheme.buttonN.sTheme.tBG = {colors.lime}
  371.     scrollView.sliderV.nTheme.buttonN.dTheme.t = {string.char(31)}
  372.     scrollView.sliderV.nTheme.buttonN.dTheme.tC = {colors.gray}
  373.     scrollView.sliderV.nTheme.buttonN.dTheme.tBG = {colors.lime}
  374.     scrollView.sliderV.nTheme.sliderT = {string.char(127)}
  375.     scrollView.sliderV.nTheme.sliderTC = {colors.lightGray}
  376.     scrollView.sliderV.nTheme.sliderTBG = {colors.lime}
  377.     scrollView.sliderV.nTheme.handleL = {"#"}
  378.     scrollView.sliderV.nTheme.handleLC = {colors.gray}
  379.     scrollView.sliderV.nTheme.handleLBG = {colors.green}
  380.     scrollView.sliderV.dTheme.buttonP.dTheme.t = {string.char(30)}
  381.     scrollView.sliderV.dTheme.buttonP.dTheme.tC = {colors.lightGray}
  382.     scrollView.sliderV.dTheme.buttonP.dTheme.tBG = {colors.gray}
  383.     scrollView.sliderV.dTheme.buttonN.dTheme.t = {string.char(31)}
  384.     scrollView.sliderV.dTheme.buttonN.dTheme.tC = {colors.lightGray}
  385.     scrollView.sliderV.dTheme.buttonN.dTheme.tBG = {colors.gray}
  386.     scrollView.sliderV.dTheme.sliderT = {string.char(127)}
  387.     scrollView.sliderV.dTheme.sliderTC = {colors.lightGray}
  388.     scrollView.sliderV.dTheme.sliderTBG = {colors.gray}
  389.     scrollView.sliderV.dTheme.handleL = {"#"}
  390.     scrollView.sliderV.dTheme.handleLC = {colors.gray}
  391.     scrollView.sliderV.dTheme.handleLBG = {colors.gray}
  392.     ---@type style.slider
  393.     scrollView.sliderH = table.copy(this.slider)
  394.     scrollView.sliderH.nTheme.buttonP.nTheme.t = {string.char(17)}
  395.     scrollView.sliderH.nTheme.buttonP.nTheme.tC = {colors.white}
  396.     scrollView.sliderH.nTheme.buttonP.nTheme.tBG = {colors.lime}
  397.     scrollView.sliderH.nTheme.buttonP.sTheme.t = {string.char(17)}
  398.     scrollView.sliderH.nTheme.buttonP.sTheme.tC = {colors.yellow}
  399.     scrollView.sliderH.nTheme.buttonP.sTheme.tBG = {colors.lime}
  400.     scrollView.sliderH.nTheme.buttonP.dTheme.t = {string.char(17)}
  401.     scrollView.sliderH.nTheme.buttonP.dTheme.tC = {colors.gray}
  402.     scrollView.sliderH.nTheme.buttonP.dTheme.tBG = {colors.lime}
  403.     scrollView.sliderH.nTheme.buttonN.nTheme.t = {string.char(16)}
  404.     scrollView.sliderH.nTheme.buttonN.nTheme.tC = {colors.white}
  405.     scrollView.sliderH.nTheme.buttonN.nTheme.tBG = {colors.lime}
  406.     scrollView.sliderH.nTheme.buttonN.sTheme.t = {string.char(16)}
  407.     scrollView.sliderH.nTheme.buttonN.sTheme.tC = {colors.yellow}
  408.     scrollView.sliderH.nTheme.buttonN.sTheme.tBG = {colors.lime}
  409.     scrollView.sliderH.nTheme.buttonN.dTheme.t = {string.char(16)}
  410.     scrollView.sliderH.nTheme.buttonN.dTheme.tC = {colors.gray}
  411.     scrollView.sliderH.nTheme.buttonN.dTheme.tBG = {colors.lime}
  412.     scrollView.sliderH.nTheme.sliderT = {string.char(127)}
  413.     scrollView.sliderH.nTheme.sliderTC = {colors.lightGray}
  414.     scrollView.sliderH.nTheme.sliderTBG = {colors.lime}
  415.     scrollView.sliderH.nTheme.handleL = {"#"}
  416.     scrollView.sliderH.nTheme.handleLC = {colors.gray}
  417.     scrollView.sliderH.nTheme.handleLBG = {colors.green}
  418.     scrollView.sliderH.dTheme.buttonP.dTheme.t = {string.char(17)}
  419.     scrollView.sliderH.dTheme.buttonP.dTheme.tC = {colors.lightGray}
  420.     scrollView.sliderH.dTheme.buttonP.dTheme.tBG = {colors.gray}
  421.     scrollView.sliderH.dTheme.buttonN.dTheme.t = {string.char(16)}
  422.     scrollView.sliderH.dTheme.buttonN.dTheme.tC = {colors.lightGray}
  423.     scrollView.sliderH.dTheme.buttonN.dTheme.tBG = {colors.gray}
  424.     scrollView.sliderH.dTheme.sliderT = {string.char(127)}
  425.     scrollView.sliderH.dTheme.sliderTC = {colors.lightGray}
  426.     scrollView.sliderH.dTheme.sliderTBG = {colors.gray}
  427.     scrollView.sliderH.dTheme.handleL = {"#"}
  428.     scrollView.sliderH.dTheme.handleLC = {colors.gray}
  429.     scrollView.sliderH.dTheme.handleLBG = {colors.gray}
  430.     ---@class style.scrollView.theme
  431.     local scrollView_normal = {
  432.         tC = colors.lime,
  433.         tBG = colors.green,
  434.         spaceTextColor = colors.white,
  435.         spaceBackgroundColor = colors.white,
  436.         bC = colors.lime,
  437.         bBG = colors.green,
  438.         b = {
  439.             {"+"},
  440.             {"-"},
  441.             {"+"},
  442.             {"|"},
  443.             {" "},
  444.             {"|"},
  445.             {"+"},
  446.             {"-"},
  447.             {"+"}
  448.         }
  449.     }
  450.     ---@type style.scrollView.theme
  451.     local scrollView_disabled = {
  452.         tC = colors.lightGray,
  453.         tBG = colors.gray,
  454.         spaceTextColor = colors.white,
  455.         spaceBackgroundColor = colors.white,
  456.         bC = colors.lightGray,
  457.         bBG = colors.gray,
  458.         b = {
  459.             {"+"},
  460.             {"-"},
  461.             {"+"},
  462.             {"|"},
  463.             {" "},
  464.             {"|"},
  465.             {"+"},
  466.             {"-"},
  467.             {"+"}
  468.         }
  469.     }
  470.     ---@type style.scrollView.theme
  471.     local scrollView_selected = {
  472.         tC = colors.yellow,
  473.         tBG = colors.green,
  474.         spaceTextColor = colors.white,
  475.         spaceBackgroundColor = colors.white,
  476.         bC = colors.lime,
  477.         bBG = colors.green,
  478.         b = {
  479.             {"+"},
  480.             {"-"},
  481.             {"+"},
  482.             {"|"},
  483.             {" "},
  484.             {"|"},
  485.             {"+"},
  486.             {"-"},
  487.             {"+"}
  488.         }
  489.     }
  490.     scrollView.nTheme = scrollView_normal
  491.     scrollView.dTheme = scrollView_disabled
  492.     scrollView.sTheme = scrollView_selected
  493.     this.scrollView = scrollView
  494.  
  495.     ---@class style.inputField
  496.     local inputField = {}
  497.     inputField.align = 1
  498.     ---@type style.label
  499.     inputField.label = table.copy(this.label)
  500.     inputField.label.nTheme.tC = colors.lime
  501.     inputField.label.nTheme.tBG = colors.green
  502.     inputField.label.sTheme.tC = colors.yellow
  503.     inputField.label.sTheme.tBG = colors.green
  504.     ---@class style.inputField.theme
  505.     local inputField_normal = {
  506.         tC = colors.white,
  507.         tBG = colors.black,
  508.         sTC = colors.white,
  509.         bC = colors.lime,
  510.         bBG = colors.green,
  511.         b = {
  512.             {"+"},
  513.             {"-"},
  514.             {"+"},
  515.             {"|"},
  516.             {" "},
  517.             {"|"},
  518.             {"+"},
  519.             {"-"},
  520.             {"+"}
  521.         }
  522.     }
  523.     ---@type style.inputField.theme
  524.     local inputField_disabled = {
  525.         tC = colors.lightGray,
  526.         tBG = colors.gray,
  527.         sTC = colors.white,
  528.         bC = colors.lightGray,
  529.         bBG = colors.gray,
  530.         b = {
  531.             {"+"},
  532.             {"-"},
  533.             {"+"},
  534.             {"|"},
  535.             {" "},
  536.             {"|"},
  537.             {"+"},
  538.             {"-"},
  539.             {"+"}
  540.         }
  541.     }
  542.     ---@type style.inputField.theme
  543.     local inputField_selected = {
  544.         tC = colors.yellow,
  545.         tBG = colors.black,
  546.         complC = colors.yellow,
  547.         complBG = colors.gray,
  548.         sTC = colors.white,
  549.         bC = colors.lime,
  550.         bBG = colors.green,
  551.         b = {
  552.             {"+"},
  553.             {"-"},
  554.             {"+"},
  555.             {"|"},
  556.             {" "},
  557.             {"|"},
  558.             {"+"},
  559.             {"-"},
  560.             {"+"}
  561.         }
  562.     }
  563.     inputField.nTheme = inputField_normal
  564.     inputField.dTheme = inputField_disabled
  565.     inputField.sTheme = inputField_selected
  566.     this.inputField = inputField
  567.  
  568.     function this:getStyle(elementType, arguments)
  569.         local copiedStyle = table.copy(self[elementType], elementType)
  570.         if type(arguments) == "table" then
  571.             for k, v in pairs(arguments) do
  572.                 copiedStyle[k] = v
  573.             end
  574.         end
  575.         return copiedStyle
  576.     end
  577.     setmetatable(
  578.         this,
  579.         {
  580.             __call = function(t, type, arguments)
  581.                 return t:getStyle(type, arguments)
  582.             end
  583.         }
  584.     )
  585.     return this
  586. end
  587.  
  588. local style = newStyle()
  589. local button1 = style("button")
  590. if term.isColor() then
  591.     button1.nTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  592.     button1.pTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  593.     button1.sTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  594.     button1.dTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  595. else
  596.     button1.nTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  597.     button1.pTheme.b = {{}, {}, {}, {"["}, {" "}, {"]"}, {}, {}, {}}
  598.     button1.sTheme.b = {{}, {}, {}, {"["}, {" "}, {"]"}, {}, {}, {}}
  599.     button1.dTheme.b = {{}, {}, {}, {"*"}, {" "}, {"*"}, {}, {}, {}}
  600. end
  601. button1.nTheme.tC = colors.white
  602. button1.nTheme.tBG = colors.green
  603. button1.nTheme.bC = colors.white
  604. button1.nTheme.bBG = colors.green
  605. button1.pTheme.tC = colors.orange
  606. button1.pTheme.tBG = colors.green
  607. button1.pTheme.bC = colors.orange
  608. button1.pTheme.bBG = colors.green
  609. button1.sTheme.tC = colors.yellow
  610. button1.sTheme.tBG = colors.green
  611. button1.sTheme.bC = colors.yellow
  612. button1.sTheme.bBG = colors.green
  613. button1.dTheme.tC = colors.gray
  614. button1.dTheme.tBG = colors.green
  615. button1.dTheme.bC = colors.gray
  616. button1.dTheme.bBG = colors.green
  617. local button2 = style("button")
  618. if term.isColor() then
  619.     button2.nTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  620.     button2.pTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  621.     button2.sTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  622.     button2.dTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  623. else
  624.     button2.nTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  625.     button2.pTheme.b = {{}, {}, {}, {"["}, {" "}, {"]"}, {}, {}, {}}
  626.     button2.sTheme.b = {{}, {}, {}, {"["}, {" "}, {"]"}, {}, {}, {}}
  627.     button2.dTheme.b = {{}, {}, {}, {"*"}, {" "}, {"*"}, {}, {}, {}}
  628. end
  629. button2.nTheme.tC = colors.white
  630. button2.nTheme.tBG = colors.red
  631. button2.nTheme.bC = colors.white
  632. button2.nTheme.bBG = colors.red
  633. button2.pTheme.tC = colors.white
  634. button2.pTheme.tBG = colors.orange
  635. button2.pTheme.bC = colors.white
  636. button2.pTheme.bBG = colors.orange
  637. button2.sTheme.tC = colors.orange
  638. button2.sTheme.tBG = colors.red
  639. button2.sTheme.bC = colors.orange
  640. button2.sTheme.bBG = colors.red
  641. button2.dTheme.tC = colors.lightGray
  642. button2.dTheme.tBG = colors.gray
  643. button2.dTheme.bC = colors.lightGray
  644. button2.dTheme.bBG = colors.gray
  645. local button3 = style("button")
  646. if term.isColor() then
  647.     button3.nTheme.b = {{}, {}, {}, {" "}, {" "}, {}, {}, {}, {}}
  648.     button3.pTheme.b = {{}, {}, {}, {"\16"}, {" "}, {}, {}, {}, {}}
  649.     button3.sTheme.b = {{}, {}, {}, {">"}, {" "}, {}, {}, {}, {}}
  650.     button3.dTheme.b = {{}, {}, {}, {" "}, {" "}, {}, {}, {}, {}}
  651. else
  652.     button3.nTheme.b = {{}, {}, {}, {" "}, {" "}, {}, {}, {}, {}}
  653.     button3.pTheme.b = {{}, {}, {}, {"\16"}, {" "}, {}, {}, {}, {}}
  654.     button3.sTheme.b = {{}, {}, {}, {">"}, {" "}, {}, {}, {}, {}}
  655.     button3.dTheme.b = {{}, {}, {}, {"*"}, {" "}, {}, {}, {}, {}}
  656. end
  657. button3.align = 1
  658. button3.nTheme.tC = colors.black
  659. button3.nTheme.tBG = colors.white
  660. button3.nTheme.bC = colors.black
  661. button3.nTheme.bBG = colors.white
  662. button3.pTheme.tC = colors.orange
  663. button3.pTheme.tBG = colors.white
  664. button3.pTheme.bC = colors.orange
  665. button3.pTheme.bBG = colors.white
  666. button3.sTheme.tC = colors.orange
  667. button3.sTheme.tBG = colors.white
  668. button3.sTheme.bC = colors.orange
  669. button3.sTheme.bBG = colors.white
  670. button3.dTheme.tC = colors.lightGray
  671. button3.dTheme.tBG = colors.white
  672. button3.dTheme.bC = colors.lightGray
  673. button3.dTheme.bBG = colors.white
  674. local button4 = style("button")
  675. if term.isColor() then
  676.     button4.nTheme.b = {{}, {}, {}, {" "}, {" "}, {}, {}, {}, {}}
  677.     button4.pTheme.b = {{}, {}, {}, {"\16"}, {" "}, {}, {}, {}, {}}
  678.     button4.sTheme.b = {{}, {}, {}, {">"}, {" "}, {}, {}, {}, {}}
  679.     button4.dTheme.b = {{}, {}, {}, {" "}, {" "}, {}, {}, {}, {}}
  680. else
  681.     button4.nTheme.b = {{}, {}, {}, {"x"}, {" "}, {}, {}, {}, {}}
  682.     button4.pTheme.b = {{}, {}, {}, {"\16"}, {" "}, {}, {}, {}, {}}
  683.     button4.sTheme.b = {{}, {}, {}, {">"}, {" "}, {}, {}, {}, {}}
  684.     button4.dTheme.b = {{}, {}, {}, {"*"}, {" "}, {}, {}, {}, {}}
  685. end
  686. button4.align = 1
  687. button4.nTheme.tC = colors.blue
  688. button4.nTheme.tBG = colors.white
  689. button4.nTheme.bC = colors.blue
  690. button4.nTheme.bBG = colors.white
  691. button4.pTheme.tC = colors.red
  692. button4.pTheme.tBG = colors.white
  693. button4.pTheme.bC = colors.red
  694. button4.pTheme.bBG = colors.white
  695. button4.sTheme.tC = colors.red
  696. button4.sTheme.tBG = colors.white
  697. button4.sTheme.bC = colors.red
  698. button4.sTheme.bBG = colors.white
  699. button4.dTheme.tC = colors.lightGray
  700. button4.dTheme.tBG = colors.white
  701. button4.dTheme.bC = colors.lightGray
  702. button4.dTheme.bBG = colors.white
  703. local deactivatedButton = style("button")
  704. if term.isColor() then
  705.     deactivatedButton.nTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  706.     deactivatedButton.pTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  707.     deactivatedButton.sTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  708.     deactivatedButton.dTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  709. else
  710.     deactivatedButton.nTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  711.     deactivatedButton.pTheme.b = {{}, {}, {}, {"["}, {" "}, {"]"}, {}, {}, {}}
  712.     deactivatedButton.sTheme.b = {{}, {}, {}, {"["}, {" "}, {"]"}, {}, {}, {}}
  713.     deactivatedButton.dTheme.b = {{}, {}, {}, {"*"}, {" "}, {"*"}, {}, {}, {}}
  714. end
  715. deactivatedButton.nTheme.tC = colors.white
  716. deactivatedButton.nTheme.tBG = colors.lime
  717. deactivatedButton.nTheme.bC = colors.white
  718. deactivatedButton.nTheme.bBG = colors.lime
  719. deactivatedButton.pTheme.tC = colors.orange
  720. deactivatedButton.pTheme.tBG = colors.lime
  721. deactivatedButton.pTheme.bC = colors.orange
  722. deactivatedButton.pTheme.bBG = colors.lime
  723. deactivatedButton.sTheme.tC = colors.yellow
  724. deactivatedButton.sTheme.tBG = colors.lime
  725. deactivatedButton.sTheme.bC = colors.yellow
  726. deactivatedButton.sTheme.bBG = colors.lime
  727. deactivatedButton.dTheme.tC = colors.lightGray
  728. deactivatedButton.dTheme.tBG = colors.gray
  729. deactivatedButton.dTheme.bC = colors.lightGray
  730. deactivatedButton.dTheme.bBG = colors.gray
  731. local activatedButton = style("button")
  732. if term.isColor() then
  733.     activatedButton.nTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  734.     activatedButton.pTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  735.     activatedButton.sTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  736.     activatedButton.dTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  737. else
  738.     activatedButton.nTheme.b = {{}, {}, {}, {" "}, {" "}, {" "}, {}, {}, {}}
  739.     activatedButton.pTheme.b = {{}, {}, {}, {"["}, {" "}, {"]"}, {}, {}, {}}
  740.     activatedButton.sTheme.b = {{}, {}, {}, {"["}, {" "}, {"]"}, {}, {}, {}}
  741.     activatedButton.dTheme.b = {{}, {}, {}, {"*"}, {" "}, {"*"}, {}, {}, {}}
  742. end
  743. activatedButton.nTheme.tC = colors.white
  744. activatedButton.nTheme.tBG = colors.orange
  745. activatedButton.nTheme.bC = colors.white
  746. activatedButton.nTheme.bBG = colors.orange
  747. activatedButton.pTheme.tC = colors.red
  748. activatedButton.pTheme.tBG = colors.orange
  749. activatedButton.pTheme.bC = colors.red
  750. activatedButton.pTheme.bBG = colors.orange
  751. activatedButton.sTheme.tC = colors.yellow
  752. activatedButton.sTheme.tBG = colors.orange
  753. activatedButton.sTheme.bC = colors.yellow
  754. activatedButton.sTheme.bBG = colors.orange
  755. activatedButton.dTheme.tC = colors.lightGray
  756. activatedButton.dTheme.tBG = colors.gray
  757. activatedButton.dTheme.bC = colors.lightGray
  758. activatedButton.dTheme.bBG = colors.gray
  759. ---@type style.toggleButton
  760. local toggle1 = style("toggleButton")
  761. if term.isColor() then
  762.     toggle1.dTheme.checkedL = {" ", "X", " "}
  763.     toggle1.dTheme.checkedLC = {colors.white, colors.white, colors.white}
  764.     toggle1.dTheme.checkedLBG = {colors.white, colors.gray, colors.white}
  765.     toggle1.dTheme.uncheckedL = {" ", "O", " "}
  766.     toggle1.dTheme.uncheckedLC = {colors.white, colors.white, colors.white}
  767.     toggle1.dTheme.uncheckedLBG = {colors.white, colors.gray, colors.white}
  768. end
  769. local sView1 = style("scrollView")
  770. sView1.nTheme.b = {{}, {}, {}, {}, {" "}, {" "}, {}, {}, {}}
  771. sView1.sTheme.b = {{}, {}, {}, {}, {" "}, {" "}, {}, {}, {}}
  772. sView1.dTheme.b = {{}, {}, {}, {}, {" "}, {" "}, {}, {}, {}}
  773. local sView2 = style("scrollView")
  774. sView2.label.align = 1
  775. sView2.label.nTheme.tC = colors.black
  776. sView2.label.sTheme.tC = colors.black
  777. sView2.label.dTheme.tC = colors.black
  778. sView2.nTheme.spaceTextColor = colors.black
  779. sView2.nTheme.bC = colors.black
  780. sView2.nTheme.spaceBackgroundColor = colors.white
  781. sView2.nTheme.bBG = colors.white
  782. sView2.sTheme.spaceTextColor = colors.black
  783. sView2.sTheme.spaceTextColor = colors.black
  784. sView2.sTheme.bC = colors.black
  785. sView2.sTheme.bC = colors.black
  786. sView2.dTheme.spaceBackgroundColor = colors.white
  787. sView2.dTheme.spaceBackgroundColor = colors.white
  788. sView2.dTheme.bBG = colors.white
  789. sView2.dTheme.bBG = colors.white
  790. sView2.sliderH.nTheme.buttonN.nTheme.tBG = {colors.white}
  791. sView2.sliderH.nTheme.buttonN.nTheme.tC = {colors.black}
  792. sView2.sliderH.nTheme.buttonN.dTheme.tBG = {colors.white}
  793. sView2.sliderH.nTheme.buttonN.dTheme.tC = {colors.gray}
  794. sView2.sliderH.nTheme.buttonN.sTheme.tBG = {colors.white}
  795. sView2.sliderH.nTheme.buttonN.sTheme.tC = {colors.orange}
  796. sView2.sliderH.dTheme.buttonN.dTheme.tBG = {colors.white}
  797. sView2.sliderH.dTheme.buttonN.dTheme.tC = {colors.gray}
  798. sView2.sliderH.nTheme.buttonP.nTheme.tBG = {colors.white}
  799. sView2.sliderH.nTheme.buttonP.nTheme.tC = {colors.black}
  800. sView2.sliderH.nTheme.buttonP.dTheme.tBG = {colors.white}
  801. sView2.sliderH.nTheme.buttonP.dTheme.tC = {colors.gray}
  802. sView2.sliderH.nTheme.buttonP.sTheme.tBG = {colors.white}
  803. sView2.sliderH.nTheme.buttonP.sTheme.tC = {colors.orange}
  804. sView2.sliderH.dTheme.buttonP.dTheme.tBG = {colors.white}
  805. sView2.sliderH.dTheme.buttonP.dTheme.tC = {colors.gray}
  806. sView2.sliderV.nTheme.buttonN.nTheme.tBG = {colors.white}
  807. sView2.sliderV.nTheme.buttonN.nTheme.tC = {colors.black}
  808. sView2.sliderV.nTheme.buttonN.dTheme.tBG = {colors.white}
  809. sView2.sliderV.nTheme.buttonN.dTheme.tC = {colors.gray}
  810. sView2.sliderV.nTheme.buttonN.sTheme.tBG = {colors.white}
  811. sView2.sliderV.nTheme.buttonN.sTheme.tC = {colors.orange}
  812. sView2.sliderV.dTheme.buttonN.dTheme.tBG = {colors.white}
  813. sView2.sliderV.dTheme.buttonN.dTheme.tC = {colors.gray}
  814. sView2.sliderV.nTheme.buttonP.nTheme.tBG = {colors.white}
  815. sView2.sliderV.nTheme.buttonP.nTheme.tC = {colors.black}
  816. sView2.sliderV.nTheme.buttonP.dTheme.tBG = {colors.white}
  817. sView2.sliderV.nTheme.buttonP.dTheme.tC = {colors.gray}
  818. sView2.sliderV.nTheme.buttonP.sTheme.tBG = {colors.white}
  819. sView2.sliderV.nTheme.buttonP.sTheme.tC = {colors.orange}
  820. sView2.sliderV.dTheme.buttonP.dTheme.tBG = {colors.white}
  821. sView2.sliderV.dTheme.buttonP.dTheme.tC = {colors.gray}
  822. sView2.sliderH.nTheme.handleLBG = {colors.white}
  823. sView2.sliderH.nTheme.handleLC = {colors.gray}
  824. sView2.sliderH.nTheme.sliderTBG = {colors.white}
  825. sView2.sliderH.nTheme.sliderTC = {colors.black}
  826. sView2.sliderV.nTheme.handleLBG = {colors.white}
  827. sView2.sliderV.nTheme.handleLC = {colors.gray}
  828. sView2.sliderV.nTheme.sliderTBG = {colors.white}
  829. sView2.sliderV.nTheme.sliderTC = {colors.black}
  830. local tBox1 = style("textBox")
  831. local tBox2 = style("textBox")
  832. tBox2.label.align = 1
  833. tBox2.label.nTheme.tC = colors.black
  834. tBox2.label.nTheme.tBG = colors.white
  835. tBox2.label.nTheme.prefix = " "
  836. tBox2.label.nTheme.suffix = " "
  837. tBox2.label.sTheme.tC = colors.orange
  838. tBox2.label.sTheme.tBG = colors.white
  839. tBox2.label.dTheme.tC = colors.gray
  840. tBox2.label.dTheme.tBG = colors.white
  841. tBox2.nTheme.b = {{}, {"-"}, {"-"}, {}, {" "}, {" "}, {}, {"-"}, {"-"}}
  842. tBox2.nTheme.bC = colors.black
  843. tBox2.nTheme.bBG = colors.white
  844. tBox2.sTheme.b = {{}, {"-"}, {"-"}, {}, {" "}, {" "}, {}, {"-"}, {"-"}}
  845. tBox2.sTheme.bC = colors.orange
  846. tBox2.sTheme.bBG = colors.white
  847. tBox2.dTheme.b = {{}, {"-"}, {"-"}, {}, {" "}, {" "}, {}, {"-"}, {"-"}}
  848. tBox2.dTheme.bC = colors.gray
  849. tBox2.dTheme.bBG = colors.white
  850. tBox2.slider.nTheme.buttonN.nTheme.tBG = {colors.white}
  851. tBox2.slider.nTheme.buttonN.nTheme.tC = {colors.black}
  852. tBox2.slider.nTheme.buttonN.dTheme.tBG = {colors.white}
  853. tBox2.slider.nTheme.buttonN.dTheme.tC = {colors.gray}
  854. tBox2.slider.nTheme.buttonN.sTheme.tBG = {colors.white}
  855. tBox2.slider.nTheme.buttonN.sTheme.tC = {colors.orange}
  856. tBox2.slider.dTheme.buttonN.dTheme.tBG = {colors.white}
  857. tBox2.slider.dTheme.buttonN.dTheme.tC = {colors.gray}
  858. tBox2.slider.nTheme.buttonP.nTheme.tBG = {colors.white}
  859. tBox2.slider.nTheme.buttonP.nTheme.tC = {colors.black}
  860. tBox2.slider.nTheme.buttonP.dTheme.tBG = {colors.white}
  861. tBox2.slider.nTheme.buttonP.dTheme.tC = {colors.gray}
  862. tBox2.slider.nTheme.buttonP.sTheme.tBG = {colors.white}
  863. tBox2.slider.nTheme.buttonP.sTheme.tC = {colors.orange}
  864. tBox2.slider.dTheme.buttonP.dTheme.tBG = {colors.white}
  865. tBox2.slider.dTheme.buttonP.dTheme.tC = {colors.gray}
  866. tBox2.slider.nTheme.handleLBG = {colors.white}
  867. tBox2.slider.nTheme.handleLC = {colors.gray}
  868. tBox2.slider.nTheme.sliderTBG = {colors.white}
  869. tBox2.slider.nTheme.sliderTC = {colors.black}
  870. ---@type style.inputField
  871. local iField1 = style("inputField")
  872. iField1.align = 3
  873. iField1.nTheme.tC = colors.black
  874. iField1.nTheme.sTC = colors.black
  875. iField1.nTheme.tBG = colors.white
  876. iField1.nTheme.b = {{"+"}, {"-"}, {"+"}, {"|"}, {" "}, {"|"}, {"+"}, {"-"}, {"+"}}
  877. iField1.nTheme.bC = colors.black
  878. iField1.nTheme.bBG = colors.white
  879.  
  880. iField1.dTheme.tC = colors.gray
  881. iField1.dTheme.sTC = colors.gray
  882. iField1.dTheme.tBG = colors.white
  883. iField1.dTheme.b = {{"+"}, {"-"}, {"+"}, {"|"}, {" "}, {"|"}, {"+"}, {"-"}, {"+"}}
  884. iField1.dTheme.bC = colors.gray
  885. iField1.dTheme.bBG = colors.white
  886.  
  887. iField1.sTheme.tC = colors.black
  888. iField1.sTheme.sTC = colors.orange
  889. iField1.sTheme.tBG = colors.white
  890. iField1.sTheme.b = {{"+"}, {"-"}, {"+"}, {"|"}, {" "}, {"|"}, {"+"}, {"-"}, {"+"}}
  891. iField1.sTheme.bC = colors.orange
  892. iField1.sTheme.bBG = colors.white
  893.  
  894. iField1.label = style("label")
  895. iField1.label.nTheme.prefix = "-"
  896. iField1.label.nTheme.suffix = "-"
  897. iField1.label.nTheme.tBG = colors.white
  898. iField1.label.nTheme.tC = colors.black
  899. iField1.label.dTheme.prefix = "*"
  900. iField1.label.dTheme.suffix = "*"
  901. iField1.label.dTheme.tBG = colors.white
  902. iField1.label.dTheme.tC = colors.gray
  903. iField1.label.sTheme.prefix = ">"
  904. iField1.label.sTheme.suffix = "<"
  905. iField1.label.sTheme.tBG = colors.white
  906. iField1.label.sTheme.tC = colors.orange
  907.  
  908. ---@type style.inputField
  909. local iField2 = style("inputField")
  910. iField2.nTheme.b = {{}, {}, {}, {}, {" "}, {}, {}, {}, {}}
  911. iField2.nTheme.tC = colors.white
  912. iField2.nTheme.sTC = colors.white
  913. iField2.nTheme.tBG = colors.black
  914. iField2.dTheme.b = {{}, {}, {}, {}, {" "}, {}, {}, {}, {}}
  915. iField2.sTheme.b = {{}, {}, {}, {}, {" "}, {}, {}, {}, {}}
  916.  
  917. local label1 = style("label")
  918. label1.align = 1
  919. label1.nTheme.tBG = colors.green
  920. label1.nTheme.tC = colors.black
  921. local label2 = style("label")
  922. table.save({button1 = button1, button2 = button2, button3 = button3, button4 = button4, toggle1 = toggle1, activatedButton = activatedButton, deactivatedButton = deactivatedButton, sView1 = sView1, sView2 = sView2, tBox1 = tBox1, tBox2 = tBox2, iField1 = iField1, iField2 = iField2, label1 = label1, label2 = label2}, "os/theme/main.lua")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement