makepad/widgets/sheets/themes/mecha-dark/theme.splash

260 lines
11 KiB
Text

mod.theme = mod.themes.dark
// Mecha dark. The same cockpit in navy armour: deep navy plates with their
// corners cut at 45 degrees and screws in them, each part a plate with a
// steel-blue bevel lit from the upper left. Ink is a pale blue-white.
// Fields, lists and screens are near-black glass in a navy frame. The
// suit's colour code marks what matters: the default action a red cap,
// blue for a value, a mark that is set and the chosen answer, lit from
// within; yellow, green and purple for the other values. Knobs are
// machined steel with a red index in a dark ring. The faces are drawn in
// widgets.splash, line for line the light sheet's; this file holds the
// tokens every face and every stock widget reads.
mod.theme.color_bg_app = #0f1b2d
mod.theme.color_fg_app = #1a2a3f
mod.theme.color_bg_container = #0f1b2d
mod.theme.color_surface_container = #1b2b41
mod.theme.color_surface_container_lowest = #0a1424
mod.theme.color_bg_even = #00000000
mod.theme.color_bg_odd = #ffffff08
mod.theme.color_highlight = #2a7dff
mod.theme.color_bg_highlight = #1a2a3f
mod.theme.color_bg_highlight_inline = #2a7dff50
// Raised faces the sheet does not redraw: a navy plate, its top lighter.
mod.theme.color_outset = #1e2e45
mod.theme.color_outset_1 = #26384f
mod.theme.color_outset_2 = #152338
mod.theme.color_outset_hover = #24354d
mod.theme.color_outset_1_hover = #2c3f58
mod.theme.color_outset_2_hover = #1a283e
mod.theme.color_outset_focus = #1e2e45
mod.theme.color_outset_1_focus = #26384f
mod.theme.color_outset_2_focus = #152338
mod.theme.color_outset_active = #142134
mod.theme.color_outset_1_active = #142134
mod.theme.color_outset_2_active = #142134
mod.theme.color_outset_down = #142134
mod.theme.color_outset_1_down = #142134
mod.theme.color_outset_2_down = #142134
mod.theme.color_outset_drag = #142134
mod.theme.color_outset_1_drag = #142134
mod.theme.color_outset_2_drag = #142134
mod.theme.color_outset_disabled = #1a2433
mod.theme.color_outset_1_disabled = #1a2433
mod.theme.color_outset_2_disabled = #1a2433
// Wells: near-black navy glass.
mod.theme.color_inset = #08131f
mod.theme.color_inset_1 = #06111c
mod.theme.color_inset_2 = #0b1828
mod.theme.color_inset_hover = #0b1828
mod.theme.color_inset_1_hover = #091522
mod.theme.color_inset_2_hover = #0e1c2e
mod.theme.color_inset_focus = #0b1828
mod.theme.color_inset_1_focus = #091522
mod.theme.color_inset_2_focus = #0e1c2e
mod.theme.color_inset_active = #08131f
mod.theme.color_inset_1_active = #06111c
mod.theme.color_inset_2_active = #0b1828
mod.theme.color_inset_down = #06111c
mod.theme.color_inset_1_down = #050e18
mod.theme.color_inset_2_down = #08131f
mod.theme.color_inset_drag = #06111c
mod.theme.color_inset_1_drag = #050e18
mod.theme.color_inset_2_drag = #08131f
mod.theme.color_inset_empty = #08131f
mod.theme.color_inset_1_empty = #06111c
mod.theme.color_inset_2_empty = #0b1828
mod.theme.color_inset_disabled = #0d1520
mod.theme.color_inset_1_disabled = #0d1520
mod.theme.color_inset_2_disabled = #0d1520
// The device pixel edges of a stock face: steel blue on the top of a
// plate, black under it and round it.
mod.theme.beveling = 0.5
mod.theme.color_bevel = #010306
mod.theme.color_bevel_hover = #010306
mod.theme.color_bevel_focus = #2a7dff
mod.theme.color_bevel_active = #010306
mod.theme.color_bevel_empty = #010306
mod.theme.color_bevel_down = #010306
mod.theme.color_bevel_drag = #010306
mod.theme.color_bevel_disabled = #10161e
mod.theme.color_bevel_inset_1 = #010306
mod.theme.color_bevel_inset_2 = #2c4260
mod.theme.color_bevel_outset_1 = #6c88ab
mod.theme.color_bevel_outset_2 = #03070d
mod.theme.color_bevel_inset_1_hover = #010306
mod.theme.color_bevel_inset_2_hover = #2c4260
mod.theme.color_bevel_outset_1_hover = #6c88ab
mod.theme.color_bevel_outset_2_hover = #03070d
mod.theme.color_bevel_inset_1_focus = #2a7dff
mod.theme.color_bevel_inset_2_focus = #2a7dff
mod.theme.color_bevel_outset_1_focus = #2a7dff
mod.theme.color_bevel_outset_2_focus = #2a7dff
mod.theme.color_bevel_inset_1_down = #010306
mod.theme.color_bevel_inset_2_down = #2c4260
mod.theme.color_bevel_outset_1_down = #03070d
mod.theme.color_bevel_outset_2_down = #6c88ab
mod.theme.color_bevel_inset_1_disabled = #10161e
mod.theme.color_bevel_inset_2_disabled = #10161e
mod.theme.color_bevel_outset_1_disabled = #10161e
mod.theme.color_bevel_outset_2_disabled = #10161e
// Ink: a pale blue-white, about 13:1 on the plates. Dim and disabled ink a
// slate blue.
mod.theme.color_text = #e6ebf2
mod.theme.color_text_hover = #f2f5f9
mod.theme.color_text_focus = #f2f5f9
mod.theme.color_text_active = #f2f5f9
mod.theme.color_text_down = #e6ebf2
mod.theme.color_text_val = #b9c4d2
mod.theme.color_text_hl = #f2f5f9
mod.theme.color_text_disabled = #617084
mod.theme.color_text_placeholder = #8494aa
mod.theme.color_text_placeholder_hover = #90a0b5
mod.theme.color_text_meta = #9aa7b8
mod.theme.color_text_cursor = #e6ebf2
mod.theme.color_cursor = #e6ebf2
mod.theme.color_cursor_focus = #e6ebf2
mod.theme.color_label = #e6ebf2
mod.theme.color_label_hover = #f2f5f9
mod.theme.color_label_focus = #f2f5f9
mod.theme.color_label_active = #f2f5f9
mod.theme.color_label_down = #e6ebf2
mod.theme.color_label_disabled = #617084
mod.theme.color_label_inner = #e6ebf2
mod.theme.color_label_inner_hover = #f2f5f9
mod.theme.color_label_inner_focus = #e6ebf2
mod.theme.color_label_inner_active = #ffffff
mod.theme.color_label_inner_down = #d8dfe8
mod.theme.color_label_inner_drag = #d8dfe8
mod.theme.color_label_inner_inactive = #9aa7b8
mod.theme.color_label_inner_disabled = #617084
mod.theme.color_label_outer = #e6ebf2
mod.theme.color_label_outer_off = #b9c4d2
mod.theme.color_label_outer_hover = #f2f5f9
mod.theme.color_label_outer_focus = #f2f5f9
mod.theme.color_label_outer_active = #f2f5f9
mod.theme.color_label_outer_active_focus = #f2f5f9
mod.theme.color_label_outer_down = #e6ebf2
mod.theme.color_label_outer_drag = #e6ebf2
mod.theme.color_label_outer_disabled = #617084
mod.theme.color_icon = #d8dfe8
mod.theme.color_icon_hover = #f2f5f9
mod.theme.color_icon_focus = #d8dfe8
mod.theme.color_icon_active = #ffffff
mod.theme.color_icon_down = #d8dfe8
mod.theme.color_icon_disabled = #617084
mod.theme.color_on_surface = #e6ebf2
mod.theme.color_on_surface_variant = #eef2f7
// The light: the suit's blue fills a value, sets a mark and draws focus.
mod.theme.color_focus = #2a7dff
mod.theme.color_ctrl_active = #3a86ff
mod.theme.color_val = #2a7dff
mod.theme.color_val_hover = #4a92ff
mod.theme.color_val_focus = #4a92ff
mod.theme.color_val_drag = #4a92ff
mod.theme.color_val_disabled = #2b3a50
mod.theme.color_mark = #e6ebf2
mod.theme.color_mark_active = #3a86ff
mod.theme.color_mark_active_hover = #4a92ff
mod.theme.color_mark_focus = #3a86ff
mod.theme.color_mark_disabled = #3a4656
// The accent seed: the primary, secondary and tertiary families are grown
// from its hue.
mod.theme.color_ctrl_selected = #1a5fd8
mod.theme.color_text_on_accent = #ffffff
mod.theme.color_selection = #00000000
mod.theme.color_selection_hover = #2a7dff38
mod.theme.color_selection_down = #2a7dff66
mod.theme.color_selection_focus = #2a7dff66
mod.theme.color_handle = #a9b1bd
mod.theme.color_handle_hover = #c4cad3
mod.theme.color_handle_1 = #c4cad3
mod.theme.color_handle_2 = #59626f
// Screens: near-black glass with pale blue-white figures.
mod.theme.color_screen = #030811
mod.theme.color_screen_ink = #e8f1ff
mod.theme.screen_ghost = 0.08
mod.theme.color_lamp_plain = #eef3ff
mod.theme.color_lamp_off = #0a0f17
mod.theme.color_terminal_bg = #030811
mod.theme.color_terminal_text = #e6ebf2
// SPACING. Rows of 26 points, gaps of 8 between controls, panels padded
// 12. The base froze what it derived from the factor, so every rung this
// sheet depends on is stated again.
mod.theme.space_factor = 8.0
mod.theme.space_1 = 4.0
mod.theme.space_2 = 8.0
mod.theme.space_3 = 12.0
mod.theme.space_4 = 16.0
mod.theme.space_5 = 24.0
mod.theme.space_6 = 32.0
mod.theme.mspace_1 = mod.turtle.Inset{top: 4.0 right: 4.0 bottom: 4.0 left: 4.0}
mod.theme.mspace_h_1 = mod.turtle.Inset{top: 0.0 right: 4.0 bottom: 0.0 left: 4.0}
mod.theme.mspace_v_1 = mod.turtle.Inset{top: 4.0 right: 0.0 bottom: 4.0 left: 0.0}
mod.theme.mspace_2 = mod.turtle.Inset{top: 8.0 right: 8.0 bottom: 8.0 left: 8.0}
mod.theme.mspace_h_2 = mod.turtle.Inset{top: 0.0 right: 8.0 bottom: 0.0 left: 8.0}
mod.theme.mspace_v_2 = mod.turtle.Inset{top: 8.0 right: 0.0 bottom: 8.0 left: 0.0}
mod.theme.mspace_3 = mod.turtle.Inset{top: 12.0 right: 12.0 bottom: 12.0 left: 12.0}
mod.theme.mspace_h_3 = mod.turtle.Inset{top: 0.0 right: 12.0 bottom: 0.0 left: 12.0}
mod.theme.mspace_v_3 = mod.turtle.Inset{top: 12.0 right: 0.0 bottom: 12.0 left: 0.0}
mod.theme.size_control_s = 22.0
mod.theme.size_control_m = 26.0
mod.theme.size_control_l = 30.0
mod.theme.tab_height = 28.0
mod.theme.tab_flat_height = 26.0
mod.theme.data_item_height = 22.0
// Stock shaders draw a corner twice the number written: 2 is the 4 point
// corner of a cap, 4 the 8 point corner of a panel. The sheet's own faces
// cut their corners at 45 degrees instead.
mod.theme.corner_radius = 2.0
mod.theme.container_corner_radius = 4.0
mod.theme.textselection_corner_radius = 1.0
mod.theme.radius_s = 3.0
mod.theme.radius_m = 4.0
mod.theme.radius_l = 8.0
// TYPE. The library's own grotesque, Inter, in three weights: regular for
// working text, medium on the caps, a heavy bold for the captions, as the
// cockpit stencils its panel names. Labels at 8.5 points, so the cap height
// is about a third of the 26 point row.
mod.theme.font_size_p = 8.5
mod.theme.font_size_base = 8.5
mod.theme.type_title_l_size = 12.0
mod.theme.type_title_m_size = 10.5
mod.theme.type_title_s_size = 9.5
mod.theme.type_body_l_size = 9.0
mod.theme.type_body_m_size = 8.5
mod.theme.type_body_s_size = 8.0
mod.theme.type_label_l_size = 8.5
mod.theme.type_label_m_size = 8.0
mod.theme.type_label_s_size = 7.5
mod.theme.font_size_4 = 10.5
use mod.res.*
use mod.text.*
mod.theme.font_regular = mod.theme.font_regular{font_size: 8.5 font_family: mod.theme.font_regular.font_family{ibm_plex_text := FontMember{res: crate_resource("makepad_widgets:resources/Inter.ttf") weight: 420.0 asc: 0.0 desc: 0.0}}}
mod.theme.font_label = mod.theme.font_label{font_size: 8.5 font_family: mod.theme.font_label.font_family{ibm_plex_text := FontMember{res: crate_resource("makepad_widgets:resources/Inter.ttf") weight: 560.0 asc: 0.0 desc: 0.0}}}
mod.theme.font_bold = mod.theme.font_bold{font_size: 9.5 font_family: mod.theme.font_bold.font_family{ibm_plex_semibold := FontMember{res: crate_resource("makepad_widgets:resources/Inter.ttf") weight: 760.0 asc: 0.0 desc: 0.0}}}
mod.theme.font_title_l = mod.theme.font_bold{font_size: 12.0 line_spacing: 1.2}
mod.theme.font_title_m = mod.theme.font_bold{font_size: 10.5 line_spacing: 1.2}
mod.theme.font_title_s = mod.theme.font_bold{font_size: 9.5 line_spacing: 1.2}
mod.theme.font_body_l = mod.theme.font_regular{font_size: 9.0 line_spacing: 1.35}
mod.theme.font_body_m = mod.theme.font_regular{font_size: 8.5 line_spacing: 1.35}
mod.theme.font_body_s = mod.theme.font_regular{font_size: 8.0 line_spacing: 1.35}
mod.theme.font_label_l = mod.theme.font_bold{font_size: 8.5 line_spacing: 1.2}
mod.theme.font_label_m = mod.theme.font_bold{font_size: 8.0 line_spacing: 1.2}
mod.theme.font_label_s = mod.theme.font_bold{font_size: 7.5 line_spacing: 1.2}
// No surface material: every face that matters is drawn by the sheet.
mod.theme.material_level = 0.0
mod.theme.material_margin = 0.0
mod.theme.material_glow = 0.0
mod.theme.material_ink_glow = 0.0
mod.theme.color_material_glow = #2a7dff
true