Pixel-Composer/scripts/theme_definition/theme_definition.gml

595 lines
18 KiB
Text
Raw Normal View History

2024-07-16 12:38:05 +02:00
function Theme() constructor {
2025-01-06 02:49:09 +01:00
icon_24 = 0;
icon_64 = 0;
2024-07-16 12:38:05 +02:00
2025-01-06 02:49:09 +01:00
color_3d = 0;
color_3d_selected = 0;
color_picker_box = 0;
color_picker_sample = 0;
dialog = 0;
shadow_drop_down_24 = 0;
2024-07-16 12:38:05 +02:00
2025-01-06 02:49:09 +01:00
ac_constant = 0;
ac_function = 0;
ac_node = 0;
accept_16 = 0;
accept = 0;
add_16 = 0;
add_20 = 0;
add = 0;
add_node_search_high = 0;
addon_icon = 0;
addon_setting = 0;
animate_clock = 0;
animate_node_go = 0;
animate_prop_go = 0;
animation_setting = 0;
animation_stretch = 0;
animation_timing = 0;
arrow_back_32 = 0;
arrow = 0;
arrow_wire_16 = 0;
bone = 0;
button_path_icon = 0;
cache_group = 0;
cache = 0;
canvas_20 = 0;
chat = 0;
checkbox_on_start = 0;
circle_16 = 0;
circle_hotkey = 0;
circle = 0;
circle_toggle_8 = 0;
code_show_auto = 0;
code_show_line = 0;
code_syntax_highlight = 0;
color_picker_dropper = 0;
color_wheel = 0;
copy_20 = 0;
copy = 0;
cross = 0;
cross_12 = 0;
cross_16 = 0;
cursor_select = 0;
d3d_preview_settings = 0;
d3d_snap_settings = 0;
discord = 0;
display_palette = 0;
duplicate = 0;
explorer = 0;
feedback_24 = 0;
feedback = 0;
file = 0;
fill = 0;
filter_type = 0;
fluid_sim = 0;
folder_16 = 0;
folder_add = 0;
folder_content = 0;
folder = 0;
frame_range = 0;
gear = 0;
gear_16 = 0;
globe = 0;
grad_blend = 0;
group_s = 0;
group = 0;
hamburger_s = 0;
hamburger = 0;
heart = 0;
icon_3d_anchor = 0;
icon_active_split = 0;
icon_canvas = 0;
icon_center_canvas = 0;
icon_cmd_enter = 0;
icon_curve_connection = 0;
icon_delete = 0;
icon_font = 0;
icon_grid_setting = 0;
icon_minimap = 0;
icon_preview_export = 0;
icon_random = 0;
icon_reset_when_preview = 0;
icon_save_all = 0;
icon_splash_show_on_start = 0;
icon_split_view = 0;
icon_tile_view = 0;
icon_toggle = 0;
icon_visibility = 0;
image_20 = 0;
info = 0;
inspector_view = 0;
junc_visible = 0;
junction_bypass = 0;
keyframe_override = 0;
loading_s = 0;
loading = 0;
lock_12 = 0;
lock = 0;
loop_24 = 0;
loop = 0;
message_16_grey_bubble = 0;
message_16_grey = 0;
message_16 = 0;
minus_16 = 0;
minus = 0;
new_file = 0;
new_line_shift = 0;
node_dropper = 0;
node_goto = 0;
node_name_type = 0;
node_processor_icon = 0;
node_resize = 0;
node_use_expression = 0;
node_use_project = 0;
noti_icon_error = 0;
noti_icon_file_load = 0;
noti_icon_file_save = 0;
noti_icon_log = 0;
noti_icon_tick = 0;
noti_icon_warning = 0;
onion_skin = 0;
panel_animation_icon = 0;
panel_graph_icon = 0;
panel_inspector_icon = 0;
panel_preview_icon = 0;
paste_20 = 0;
paste = 0;
path_open_20 = 0;
path_open = 0;
patreon = 0;
pen_pressure = 0;
pin = 0;
pixel_builder = 0;
play_action = 0;
play_all = 0;
play_sound = 0;
preset = 0;
redo = 0;
refresh_16 = 0;
refresh_20 = 0;
refresh_icon = 0;
reset_16 = 0;
reverse = 0;
rigidSim = 0;
rotator_random_mode = 0;
save_auto = 0;
save = 0;
scroll_box_arrow = 0;
search = 0;
search_24 = 0;
sequence_control = 0;
smoke_sim = 0;
sort_16 = 0;
sort = 0;
splash_thumbnail = 0;
star = 0;
steam_creator = 0;
steam = 0;
strandSim = 0;
tab_exit = 0;
tag = 0;
text_bullet = 0;
text_popup = 0;
text = 0;
timeline_graph = 0;
trophy = 0;
tunnel = 0;
undo = 0;
unit_angle = 0;
unit_audio = 0;
unit_ref = 0;
value_link = 0;
value_range = 0;
value_use_surface = 0;
vct = 0;
vfx = 0;
view_group = 0;
view_mode = 0;
scrollbox_direction = 0;
view_pan = 0;
view_zoom = 0;
visible_12 = 0;
visible = 0;
wiki = 0;
window_exit_icon = 0;
window_fullscreen_icon = 0;
window_maximize_icon = 0;
window_minimize_icon = 0;
workshop_collection = 0;
workshop_project = 0;
workshop_update = 0;
workshop_upload = 0;
youtube = 0;
2023-07-05 15:40:14 +02:00
2025-01-06 02:49:09 +01:00
inspector_area_type = 0;
inspector_area = 0;
inspector_surface_halign = 0;
inspector_surface_valign = 0;
inspector_text_halign = 0;
inspector_text_valign = 0;
prop_anchor = 0;
prop_gradient = 0;
prop_keyframe = 0;
prop_on_end = 0;
prop_selecting = 0;
rotator_bg = 0;
rotator_knob = 0;
2023-07-05 15:40:14 +02:00
2025-01-06 02:49:09 +01:00
node_draw_area = 0;
node_draw_path = 0;
node_junction_add = 0;
node_junction_inspector = 0;
2023-07-05 15:40:14 +02:00
2025-01-06 02:49:09 +01:00
node_junctions_single = 0;
node_junctions_bg_x2 = 0;
node_junctions_outline_x2 = 0;
node_junctions_outline_hover_x2 = 0;
node_junctions_bg = 0;
node_junctions_outline = 0;
node_junctions_outline_hover = 0;
node_junction_selecting = 0;
2023-07-05 15:40:14 +02:00
2025-01-06 02:49:09 +01:00
node_bg = 0;
node_coor_pin = 0;
node_deprecated_badge = 0;
node_frame_bg = 0;
node_glow_border = 0;
node_junction_name_bg = 0;
node_new_badge = 0;
node_state = 0;
node_trigger_icon = 0;
node_websocket_receive = 0;
node_websocket_send = 0;
2023-07-05 15:40:14 +02:00
2025-01-06 02:49:09 +01:00
box_r2 = 0;
box_r2_clr = 0;
box_r5_clr = 0;
2025-01-06 02:49:09 +01:00
key_display = 0;
palette_mask = 0;
palette_selecting = 0;
timeline_color = 0;
tool_side = 0;
toolbar = 0;
ui_panel = 0;
ui_panel_bg_cover = 0;
ui_panel_bg = 0;
ui_panel_tab = 0;
ui_scrollbar = 0;
ui_selection_range_hori = 0;
ui_selection_range_sim_hori = 0;
ui_selection = 0;
ui_panel_selection = 0;
add_node_bg = 0;
2024-07-16 12:38:05 +02:00
2025-01-06 02:49:09 +01:00
anchor_arrow = 0;
anchor_bone_stick = 0;
anchor_rotate = 0;
anchor_scale_hori = 0;
anchor_scale = 0;
anchor_selector = 0;
anchor = 0;
cursor_path_add = 0;
cursor_path_anchor = 0;
cursor_path_move = 0;
cursor_path_remove = 0;
preview_bone_IK = 0;
2023-07-05 15:40:14 +02:00
2025-01-06 02:49:09 +01:00
timeline_ease = 0;
timeline_key_ease = 0;
timeline_key_empty = 0;
timeline_keyframe_selecting = 0;
timeline_keyframe = 0;
timeline_onion_skin = 0;
2023-07-05 15:40:14 +02:00
2025-01-06 02:49:09 +01:00
curve_presets = 0;
inspector_channel = 0;
inspector_checkbox = 0;
obj_auto_align = 0;
obj_auto_organize = 0;
obj_angle = 0;
obj_direction = 0;
obj_distribute_h = 0;
obj_distribute_v = 0;
obj_draw_line = 0;
obj_hemicircle = 0;
object_halign = 0;
object_valign = 0;
2024-07-16 12:38:05 +02:00
2025-01-06 02:49:09 +01:00
bone_tool_add = 0;
bone_tool_detach = 0;
bone_tool_IK = 0;
bone_tool_move = 0;
bone_tool_pose = 0;
bone_tool_remove = 0;
bone_tool_scale = 0;
bone_tool_mirror = 0;
canvas_draw_layer = 0;
canvas_iso_angle = 0;
canvas_fill_type = 0;
canvas_flip_h = 0;
canvas_flip_v = 0;
canvas_mirror_diag = 0;
canvas_mirror = 0;
canvas_resize = 0;
canvas_rotate_ccw = 0;
canvas_rotate_cw = 0;
canvas_tool_curve_icon = 0;
canvas_tools_bucket = 0;
canvas_tools_ellip_fill = 0;
canvas_tools_ellip = 0;
canvas_tools_iso_cube_fill = 0;
canvas_tools_iso_cube_wire = 0;
canvas_tools_iso_cube = 0;
canvas_tools_eraser = 0;
canvas_tools_extrude = 0;
canvas_tools_freeform_selection = 0;
canvas_tools_freeform = 0;
canvas_tools_inset = 0;
canvas_tools_magic_selection = 0;
canvas_tools_corner = 0;
canvas_tools_node = 0;
canvas_tools_outline = 0;
canvas_tools_pencil = 0;
canvas_tools_rect_fill = 0;
canvas_tools_rect = 0;
canvas_tools_selection_brush = 0;
canvas_tools_selection_circle = 0;
canvas_tools_selection_rectangle = 0;
canvas_tools_skew = 0;
control_add = 0;
control_pin = 0;
crop_fit_height = 0;
crop_fit_width = 0;
crop_tool = 0;
mesh_tool_delete = 0;
mesh_tool_edit = 0;
path_tools_add = 0;
path_tools_anchor = 0;
path_tools_circle = 0;
path_tools_draw = 0;
path_tools_rectangle = 0;
path_tools_transform = 0;
strand_comb = 0;
strand_cut = 0;
strand_grab = 0;
strand_push = 0;
strand_stretch = 0;
toolbar_check = 0;
tools_3d_rotate = 0;
tools_3d_scale = 0;
tools_3d_transform_object = 0;
tools_3d_transform = 0;
tools_canvas_channel = 0;
2023-07-05 15:40:14 +02:00
2025-01-06 02:49:09 +01:00
button_def = 0;
button_hide_fill = 0;
button_hide_left = 0;
button_hide_middle = 0;
button_hide_right = 0;
button_hide = 0;
button_left = 0;
button_lime = 0;
button_middle = 0;
button_right = 0;
checkbox_active = 0;
checkbox_def = 0;
progress_bar = 0;
textbox_code = 0;
textbox_header = 0;
textbox = 0;
widget_selecting = 0;
2024-07-16 12:38:05 +02:00
}
2023-07-05 15:40:14 +02:00
2025-01-06 02:49:09 +01:00
var th = new Theme();
global.THEME_KEYS = struct_get_names(th);
2024-07-16 12:38:05 +02:00
function ThemeColorDef() constructor {
2024-02-12 10:25:23 +01:00
main_dkblack = #191925;
main_mdblack = #1e1e2c;
main_black = #272736;
main_dkgrey = #3b3b4e;
2025-01-05 11:21:56 +01:00
main_dark = #505066;
2024-02-12 10:25:23 +01:00
main_grey = #6d6d81;
main_ltgrey = #7e7e8f;
2024-12-14 03:39:34 +01:00
main_mdwhite = #9f9fb5;
2024-02-12 10:25:23 +01:00
main_white = #d6d6e8;
main_bg = #1c1c23;
blue = #27aae1;
cyan = #88ffe9;
yellow = #ffe478;
orange = #ff9166;
red = #eb004b;
pink = #eb00b7;
purple = #9200d4;
lime = #8fde5d;
pgreen = #50eb17;
pblue = #3d43f5;
black = #000000;
dkgrey = #202020;
smoke = #6d6e71;
white = #ffffff;
2024-07-16 12:38:05 +02:00
}
function ThemeColor() constructor {
bg = CDEF.main_bg;
_main_accent = CDEF.orange;
_main_text = CDEF.white;
_main_text_inner = CDEF.main_white;
_main_text_accent = CDEF.orange;
_main_text_accent_inner = CDEF.orange;
_main_text_on_accent = CDEF.main_black;
_main_text_sub = CDEF.main_grey;
_main_text_sub_inner = CDEF.main_grey;
_main_icon = CDEF.main_ltgrey;
_main_icon_on_inner = CDEF.main_white;
_main_icon_light = CDEF.main_white;
_main_icon_dark = CDEF.main_mdblack;
_main_value_positive = CDEF.lime;
_main_value_negative = CDEF.red;
lua_highlight_keyword = CDEF.orange;
lua_highlight_bracklet = CDEF.cyan;
lua_highlight_function = CDEF.lime;
lua_highlight_number = CDEF.yellow;
lua_highlight_string = CDEF.blue;
lua_highlight_comment = CDEF.main_ltgrey;
collection_folder_empty = CDEF.main_dkgrey;
collection_folder_nonempty = CDEF.main_ltgrey;
collection_tree_line = CDEF.main_dkgrey;
collection_path_current_bg = CDEF.main_grey;
assetbox_current_bg = CDEF.main_ltgrey;
dialog_array_edit_divider = CDEF.main_dkgrey;
dialog_array_edit_bg = CDEF.main_dkgrey;
dialog_splash_badge = CDEF.main_mdblack;
dialog_about_bg = CDEF.main_grey;
dialog_preference_prop_bg = CDEF.main_white;
dialog_add_node_collection = merge_color(CDEF.white, CDEF.orange, 0.5);
dialog_palette_divider = CDEF.main_grey;
dialog_notification_bg_hover = CDEF.main_ltgrey;
dialog_notification_bg = CDEF.main_grey;
dialog_notification_icon_bg = CDEF.main_white;
dialog_menubox_highlight = CDEF.main_white;
dialog_lua_ref_bg_args = CDEF.main_ltgrey;
dialog_lua_ref_bg_hover = merge_color(CDEF.main_white, CDEF.main_ltgrey, 0.5);
dialog_lua_ref_bg = CDEF.main_white;
add_node_blend_action = CDEF.lime;
add_node_blend_generic = CDEF.yellow;
node_composite_bg = CDEF.main_dkgrey;
node_composite_bg_blend = CDEF.main_white;
node_composite_separator = CDEF.main_black;
node_composite_overlay_border = CDEF.main_grey;
node_display_text_frame_fill = CDEF.main_grey;
node_display_text_frame_outline = CDEF.main_dkblack;
node_level_outline = CDEF.main_dkgrey;
node_level_shade = CDEF.main_black;
node_overlay_gizmo_inactive = CDEF.white;
node_blend_default = CDEF.main_ltgrey;
node_blend_tunnel = merge_color(CDEF.red, CDEF.main_black, 0.7 );
node_blend_number = CDEF.cyan;
node_blend_input = merge_color(CDEF.white, CDEF.lime, 0.5);
node_blend_loop = CDEF.cyan;
node_blend_vfx = CDEF.lime;
node_blend_feedback = CDEF.pink;
node_blend_collection = CDEF.yellow;
node_blend_simulation = CDEF.cyan;
node_blend_fluid = CDEF.main_dark;
node_blend_smoke = CDEF.smoke;
node_blend_canvas = merge_color(CDEF.white, CDEF.orange, 0.5);
node_blend_strand = CDEF.orange;
node_blend_vct = CDEF.white;
node_blend_dynaSurf = CDEF.red;
node_path_overlay_control_line = CDEF.main_grey;
node_wiggler_frame = CDEF.main_grey;
node_border_file_drop = CDEF.cyan;
scrollbar_bg = CDEF.main_dkblack;
scrollbar_idle = CDEF.main_grey;
2024-12-14 03:39:34 +01:00
scrollbar_hover = CDEF.main_mdwhite;
scrollbar_active = CDEF.main_white;
2024-07-16 12:38:05 +02:00
panel_animation_frame_divider = CDEF.main_black;
panel_animation_keyframe_ease_line = CDEF.main_dkgrey;
panel_animation_loop_line = CDEF.lime;
panel_animation_key_tool_unselected = CDEF.main_grey;
panel_animation_keyframe_selected = CDEF.main_white;
panel_animation_keyframe_unselected = CDEF.main_ltgrey;
panel_animation_keyframe_hide = CDEF.main_grey;
panel_animation_node_bg = CDEF.main_grey;
panel_animation_node_outline = CDEF.main_black;
panel_animation_dope_bg_hover = merge_color(CDEF.main_black, CDEF.main_mdblack, 0.5 );
panel_animation_dope_bg = CDEF.main_black;
panel_animation_dope_key_bg_hover = CDEF.main_mdblack;
panel_animation_dope_key_bg = CDEF.main_black;
panel_animation_graph_bg = CDEF.main_dkblack;
panel_animation_graph_select = CDEF.main_mdblack;
panel_animation_graph_line = CDEF.main_grey;
panel_animation_end_line = CDEF.main_ltgrey;
panel_animation_preview_frame = CDEF.main_dkgrey;
panel_animation_timeline_blend = CDEF.main_ltgrey;
panel_animation_timeline_top = merge_color(CDEF.black, CDEF.main_dkblack, 0.5);
panel_animation_range = CDEF.lime;
panel_animation_range_sim = CDEF.cyan;
panel_animation_dope_blend_default = merge_color(CDEF.blue, CDEF.main_dkblack, 0.5);
panel_animation_dope_blend = CDEF.main_dkblack;
2024-09-11 11:56:41 +02:00
panel_bg_clear_inner = CDEF.main_mdblack;
2024-07-16 12:38:05 +02:00
panel_bg_clear = CDEF.main_black;
2024-10-16 12:34:26 +02:00
panel_select_border = CDEF.main_grey;
panel_frame = CDEF.main_dkgrey;
2024-07-16 12:38:05 +02:00
panel_prop_bg = CDEF.main_ltgrey;
panel_tab = CDEF.white;
panel_tab_hover = CDEF.white;
panel_tab_inactive = CDEF.white;
panel_tab_text = CDEF.main_dkblack;
panel_tab_icon = CDEF.main_dkblack;
panel_separator = CDEF.main_dkgrey;
panel_graph_minimap_outline = CDEF.main_dkgrey;
panel_graph_node_dimension = CDEF.main_grey;
panel_graph_minimap_focus = CDEF.main_ltgrey;
panel_inspector_key_separator = CDEF.main_dkgrey;
panel_inspector_group_hover = CDEF.main_white;
panel_inspector_group_bg = merge_color(CDEF.main_white, CDEF.main_ltgrey, 0.5);
panel_inspector_output_label = CDEF.black;
panel_preview_grid = CDEF.main_grey;
panel_preview_surface_outline = CDEF.main_grey;
panel_preview_split_line = CDEF.main_grey;
panel_preview_tool_button = CDEF.main_white;
panel_preview_tool_separator = CDEF.main_dkgrey;
panel_preview_transparent = merge_color(CDEF.main_dkgrey, CDEF.main_black, 0.65);
panel_3d_bg = CDEF.main_dkblack;
panel_toolbar_outline = CDEF.main_dkgrey;
panel_toolbar_separator = CDEF.main_dkblack;
widget_curve_line = CDEF.main_ltgrey;
widget_curve_outline = CDEF.main_grey;
widget_rotator_range = CDEF.main_dkgrey;
widget_rotator_range_hover = CDEF.main_grey;
widget_rotator_guide = CDEF.main_grey;
widget_surface_frame = CDEF.main_dkgrey;
widget_text_highlight = CDEF.main_dkgrey;
widget_slider_step = CDEF.main_dkgrey;
widget_text_dec_d = CDEF.cyan;
widget_text_dec_n = CDEF.lime;
widget_text_dec_e = CDEF.orange;
widget_text_dec_f = CDEF.pink;
widget_text_dec_i = CDEF.yellow;
axis = [CDEF.red, CDEF.pgreen, CDEF.pblue, CDEF.yellow, CDEF.pink, CDEF.purple];
histogram = [CDEF.red, CDEF.lime, CDEF.cyan, CDEF.white];
heat = [CDEF.red, CDEF.yellow, CDEF.lime];
speed = [CDEF.red, CDEF.orange, CDEF.lime];
labels = [CDEF.white, CDEF.main_grey, CDEF.blue, CDEF.cyan, CDEF.yellow, CDEF.orange, CDEF.red, CDEF.pink, CDEF.purple, CDEF.lime];
}
function ThemeValue() constructor {
highlight_corner_radius = 8;
selection_corner_radius = 6;
panel_padding = 2;
panel_margin = 2;
panel_corner_radius = 8;
panel_notification_padding = 0;
panel_tab_extend = 2;
minimap_corner_radius = 2;
slider_type = "stem";
font_aa = true;
}