2017-07-19 00:36:15 -04:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
local Color = require 'Color'
|
2017-07-19 02:18:57 -04:00
|
|
|
local Util = require 'Util'
|
2017-07-19 00:36:15 -04:00
|
|
|
|
2021-07-06 00:11:00 -04:00
|
|
|
M.FONT = 'Neuropolitical'
|
2018-02-18 20:50:49 -05:00
|
|
|
-- text colors
|
2021-07-07 18:18:56 -04:00
|
|
|
M.HEADER_FG = Color.rgb(0xffffff)
|
2017-07-19 00:36:15 -04:00
|
|
|
|
2021-07-07 18:18:56 -04:00
|
|
|
M.INACTIVE_TEXT_FG = Color.rgb(0xeeeeee)
|
2021-07-04 19:50:55 -04:00
|
|
|
-- TODO this is also the plot label color
|
2021-07-07 18:18:56 -04:00
|
|
|
M.MID_GREY = Color.rgb(0xd6d6d6)
|
|
|
|
M.BORDER_FG = Color.rgb(0x888888)
|
2021-07-04 19:50:55 -04:00
|
|
|
|
2021-07-07 18:18:56 -04:00
|
|
|
M.PRIMARY_FG = Color.rgb(0xbfe1ff)
|
|
|
|
M.SECONDARY_FG = Color.rgb(0xcb91ff)
|
|
|
|
M.TERTIARY_FG = Color.rgb(0xefe7aa)
|
|
|
|
M.CRITICAL_FG = Color.rgb(0xff8282)
|
2018-02-18 20:50:49 -05:00
|
|
|
|
|
|
|
-- arc patterns
|
|
|
|
local GREY2 = 0xbfbfbf
|
|
|
|
local GREY5 = 0x565656
|
2021-07-07 18:18:56 -04:00
|
|
|
M.INDICATOR_BG = Color.gradient{
|
|
|
|
Color.colorstop_rgb(GREY5, 0.0),
|
|
|
|
Color.colorstop_rgb(GREY2, 0.5),
|
|
|
|
Color.colorstop_rgb(GREY5, 1.0)
|
2017-07-19 00:36:15 -04:00
|
|
|
}
|
|
|
|
|
2018-02-18 20:50:49 -05:00
|
|
|
local BLUE1 = 0x99CEFF
|
|
|
|
local BLUE3 = 0x316BA6
|
2021-07-07 18:18:56 -04:00
|
|
|
M.INDICATOR_FG_PRIMARY = Color.gradient{
|
|
|
|
Color.colorstop_rgb(BLUE3, 0.0),
|
|
|
|
Color.colorstop_rgb(BLUE1, 0.5),
|
|
|
|
Color.colorstop_rgb(BLUE3, 1.0)
|
2017-07-19 00:36:15 -04:00
|
|
|
}
|
|
|
|
|
2020-01-28 20:22:15 -05:00
|
|
|
local PURPLE1 = 0xeecfff
|
|
|
|
local PURPLE3 = 0x9523ff
|
2021-07-07 18:18:56 -04:00
|
|
|
M.INDICATOR_FG_SECONDARY = Color.gradient{
|
|
|
|
Color.colorstop_rgb(PURPLE3, 0.0),
|
|
|
|
Color.colorstop_rgb(PURPLE1, 0.5),
|
|
|
|
Color.colorstop_rgb(PURPLE3, 1.0)
|
2017-07-19 00:36:15 -04:00
|
|
|
}
|
|
|
|
|
2021-07-04 19:50:55 -04:00
|
|
|
local RED1 = 0xFF3333
|
|
|
|
local RED3 = 0xFFB8B8
|
2021-07-07 18:18:56 -04:00
|
|
|
M.INDICATOR_FG_CRITICAL = Color.gradient{
|
|
|
|
Color.colorstop_rgb(RED1, 0.0),
|
|
|
|
Color.colorstop_rgb(RED3, 0.5),
|
|
|
|
Color.colorstop_rgb(RED1, 1.0)
|
2018-02-18 20:50:49 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
-- plot patterns
|
|
|
|
local PLOT_BLUE1 = 0x003f7c
|
|
|
|
local PLOT_BLUE2 = 0x1e90ff
|
|
|
|
local PLOT_BLUE3 = 0x316ece
|
|
|
|
local PLOT_BLUE4 = 0x8cc7ff
|
2021-07-07 18:18:56 -04:00
|
|
|
M.PLOT_FILL_BORDER_PRIMARY = Color.gradient{
|
|
|
|
Color.colorstop_rgb(PLOT_BLUE1, 0.0),
|
|
|
|
Color.colorstop_rgb(PLOT_BLUE2, 1.0)
|
2018-02-18 20:50:49 -05:00
|
|
|
}
|
|
|
|
|
2021-07-07 18:18:56 -04:00
|
|
|
M.PLOT_FILL_BG_PRIMARY = Color.gradient{
|
|
|
|
Color.colorstop_rgba(PLOT_BLUE3, 0.2, 0.0),
|
|
|
|
Color.colorstop_rgba(PLOT_BLUE4, 1.0, 1.0)
|
2018-02-18 20:50:49 -05:00
|
|
|
}
|
|
|
|
|
2020-01-28 20:22:15 -05:00
|
|
|
local PLOT_PURPLE1 = 0x3e0077
|
|
|
|
local PLOT_PURPLE2 = 0x9523ff
|
|
|
|
local PLOT_PURPLE3 = 0x7a30a3
|
|
|
|
local PLOT_PURPLE4 = 0xeac4ff
|
2021-07-07 18:18:56 -04:00
|
|
|
M.PLOT_FILL_BORDER_SECONDARY = Color.gradient{
|
|
|
|
Color.colorstop_rgb(PLOT_PURPLE1, 0.0),
|
|
|
|
Color.colorstop_rgb(PLOT_PURPLE2, 1.0)
|
2017-07-19 00:36:15 -04:00
|
|
|
}
|
|
|
|
|
2021-07-07 18:18:56 -04:00
|
|
|
M.PLOT_FILL_BG_SECONDARY = Color.gradient{
|
|
|
|
Color.colorstop_rgba(PLOT_PURPLE3, 0.2, 0.0),
|
|
|
|
Color.colorstop_rgba(PLOT_PURPLE4, 1.0, 1.0)
|
2018-02-18 20:50:49 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
local PLOT_YELLOW1 = 0x231f00
|
|
|
|
local PLOT_YELLOW2 = 0x7c6f00
|
|
|
|
local PLOT_YELLOW3 = 0x8c8225
|
|
|
|
local PLOT_YELLOW4 = 0xfff387
|
2021-07-07 18:18:56 -04:00
|
|
|
M.PLOT_FILL_BORDER_TERTIARY = Color.gradient{
|
|
|
|
Color.colorstop_rgb(PLOT_YELLOW1, 0.0),
|
|
|
|
Color.colorstop_rgb(PLOT_YELLOW2, 1.0)
|
2018-02-18 20:50:49 -05:00
|
|
|
}
|
|
|
|
|
2021-07-07 18:18:56 -04:00
|
|
|
M.PLOT_FILL_BG_TERTIARY = Color.gradient{
|
|
|
|
Color.colorstop_rgba(PLOT_YELLOW3, 0.2, 0.0),
|
|
|
|
Color.colorstop_rgba(PLOT_YELLOW4, 1.0, 1.0)
|
2018-02-18 20:50:49 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
-- panel pattern
|
2021-07-07 18:18:56 -04:00
|
|
|
M.PANEL_BG = Color.rgba(0x000000, 0.7)
|
2018-02-18 20:50:49 -05:00
|
|
|
|
2021-07-07 18:18:56 -04:00
|
|
|
return Util.set_finalizer(M, function() print('Cleaning up Patterns.lua') end)
|