Pixel-Composer/scripts/theme_definition/theme_definition.gml
2024-08-14 14:55:53 +07:00

583 lines
29 KiB
Plaintext

function Theme() constructor {
icon_24 = s_icon_24;
icon_64 = s_icon_64;
color_3d = s_color_3d;
color_3d_selected = s_color_3d_selected;
color_picker_box = s_color_picker_box;
color_picker_sample = s_color_picker_sample;
dialog = s_dialog;
shadow_drop_down_24 = s_shadow_drop_down_24;
ac_constant = s_ac_constant;
ac_function = s_ac_function;
ac_node = s_ac_node;
accept_16 = s_icon_accept_16;
accept = s_icon_accept_24;
add_16 = s_add_16;
add_20 = s_add_20;
add = s_add_24;
add_node_search_high = s_add_node_search_high;
addon_icon = s_addon;
addon_setting = s_addon_setting;
animate_clock = s_animate_clock;
animate_node_go = s_animate_node_go;
animate_prop_go = s_animate_prop_go;
animation_setting = s_animation_setting;
animation_stretch = s_animation_stretch;
animation_timing = s_animation_timing;
arrow_back_32 = s_arrow_back_32;
arrow = s_arrow_16;
arrow_wire_16 = s_arrow_wire_16;
bone = s_bone;
button_path_icon = s_button_path_icon;
cache_group = s_cache_group;
cache = s_cache;
canvas_20 = s_canvas_20;
chat = s_chat;
checkbox_on_start = s_checkbox_on_start;
circle_16 = s_circle_16;
circle_hotkey = s_circle_hotkey;
circle = s_circle_8;
circle_toggle_8 = s_circle_toggle_8;
code_show_auto = s_code_show_auto;
code_show_line = s_code_show_line;
code_syntax_highlight = s_code_syntax_highlight;
color_picker_dropper = s_color_picker_dropper;
color_wheel = s_color;
copy_20 = s_copy_20;
copy = s_copy;
cross = s_delete;
cross_12 = s_cross_12;
cross_16 = s_cross_16;
cursor_select = s_cursor;
d3d_preview_settings = s_3d_preview_settings;
d3d_snap_settings = s_3d_snap_settings;
discord = s_discord;
display_palette = s_display_palette;
duplicate = s_duplicate;
explorer = s_file_explorer;
feedback_24 = s_feedback_24;
feedback = s_feedback_16;
file = s_file;
fill = s_fill_16;
filter_type = s_filter_type;
fluid_sim = s_fluid_sim;
folder_16 = s_folder_16;
folder_add = s_folder_add;
folder_content = s_folder_content;
folder = s_folder_24;
frame_range = s_frame_range;
gear = s_gear_24;
gear_16 = s_gear_16;
grad_blend = s_grad_blend;
group_s = s_group_16;
group = s_group_24;
hamburger_s = s_hamburger_s;
hamburger = s_hamburger;
heart = s_heart;
icon_3d_anchor = s_3d_anchor;
icon_active_split = s_panel_active_split;
icon_canvas = s_icon_canvas;
icon_center_canvas = s_icon_center_canvas;
icon_cmd_enter = s_icon_cmd_enter;
icon_curve_connection = s_icon_curve_connection;
icon_delete = s_delete_16;
icon_font = s_icon_font;
icon_grid_setting = s_icon_grid_setting;
icon_minimap = s_icon_minimap;
icon_preview_export = s_icon_preview_export;
icon_random = s_random;
icon_reset_when_preview = s_icon_reset_when_preview;
icon_save_all = s_icon_save_all;
icon_splash_show_on_start = s_icon_spalsh_show_on_start;
icon_split_view = s_icon_split_view;
icon_tile_view = s_icon_tile_view;
icon_toggle = s_icon_toggle;
icon_visibility = s_icon_visibility;
image_20 = s_image_20;
info = s_info;
inspector_view = s_icon_inspector_view;
junc_visible = s_junc_visible;
junction_bypass = s_junction_bypass;
keyframe_override = s_icon_keyframe_override;
loading_s = s_loading_s;
loading = s_loading;
lock_12 = s_lock_12;
lock = s_lock;
loop_24 = s_loop_24;
loop = s_loop_16;
message_16_grey_bubble = s_icon_message_16_grey_bubble;
message_16_grey = s_icon_message_16_grey;
message_16 = s_icon_message_16;
minus_16 = s_minus_16;
minus = s_minus_24;
new_file = s_new;
new_line_shift = s_new_line_shift;
node_dropper = s_icon_node_dropper;
node_goto = s_node_goto;
node_name_type = s_node_name_type;
node_processor_icon = s_node_processor;
node_resize = s_node_resize;
node_use_expression = s_node_use_experssion;
node_use_project = s_node_use_project;
noti_icon_error = s_noti_icon_error;
noti_icon_file_load = s_noti_icon_file_load;
noti_icon_file_save = s_noti_icon_file_save;
noti_icon_log = s_noti_icon_log;
noti_icon_tick = s_noti_icon_tick;
noti_icon_warning = s_noti_icon_warning;
onion_skin = s_onion_skin;
panel_animation_icon = s_panel_animation;
panel_graph_icon = s_panel_graph;
panel_inspector_icon = s_panel_inspector;
panel_preview_icon = s_panel_preview;
paste_20 = s_paste_20;
paste = s_paste;
path_open_20 = s_path_open_20;
path_open = s_path_open;
patreon = s_patreon;
pen_pressure = s_icon_pen_pressure;
pin = s_pin;
pixel_builder = s_pixel_builder;
play_action = s_play_24;
play_all = s_play_all;
play_sound = s_icon_play_sound;
preset = s_preset;
redo = s_redo;
refresh_16 = s_refresh_16;
refresh_20 = s_refresh_20;
refresh_icon = s_refresh_24;
reset_16 = s_icon_reset_16;
reverse = s_reverse;
rigidSim = s_rigidSim;
rotator_random_mode = s_rotator_random_mode;
save_auto = s_icon_save_auto;
save = s_icon_save;
scroll_box_arrow = s_scroll_box_arrow;
search = s_search_16;
search_24 = s_search_24;
sequence_control = s_sequence_control;
smoke_sim = s_smoke_sim;
sort_16 = s_sort_16;
sort = s_sort_24;
splash_thumbnail = s_icon_splash_thumbnail;
star = s_star;
steam_creator = s_steam_creator;
steam = s_steam;
strandSim = s_strandSim;
tab_exit = s_tab_exit;
text_bullet = s_text_bullet;
text_popup = s_text_popup;
text = s_name;
timeline_graph = s_timeline_graph;
trophy = s_trophy;
tunnel = s_tunnel;
undo = s_undo;
unit_angle = s_unit_angle;
unit_audio = s_unit_audio;
unit_ref = s_unit_ref;
value_link = s_padding_link;
value_range = s_value_range;
value_use_surface = s_value_use_surface;
vct = s_vct;
vfx = s_vfx;
view_group = s_view_group;
view_mode = s_view_mode;
scrollbox_direction = s_scrollbox_direction;
view_pan = s_view_pan;
view_zoom = s_view_zoom;
visible_12 = s_visible_12;
visible = s_visible;
wiki = s_wiki;
window_exit = s_window_exit;
window_fullscreen = s_window_fullscreen;
window_maximize = s_window_maximize;
window_minimize = s_window_minimize;
workshop_collection = s_group_workshop;
workshop_project = s_project_workshop;
workshop_update = s_workshop_update;
workshop_upload = s_workshop_upload;
youtube = s_youtube;
inspector_area_type = s_prop_area_type;
inspector_area = s_inspector_area;
inspector_surface_halign = s_inspector_surface_halign;
inspector_surface_valign = s_inspector_surface_valign;
inspector_text_halign = s_inspector_text_halign;
inspector_text_valign = s_inspector_text_valign;
prop_anchor = s_prop_anchor;
prop_gradient = s_prop_gradient;
prop_keyframe = s_prop_keyframe;
prop_on_end = s_prop_on_end;
prop_selecting = s_prop_selecting;
rotator_bg = s_rotator_bg;
rotator_knob = s_rotator_knob;
node_draw_area = s_node_draw_area;
node_draw_path = s_node_draw_path;
node_junction_add = s_node_junction_add;
node_junction_inspector = s_node_junction_inspector;
node_junctions_single = s_node_junctions_single;
node_junctions_bg_x2 = s_node_junctions_bg_2x;
node_junctions_outline_x2 = s_node_junctions_outline_2x;
node_junctions_outline_hover_x2 = s_node_junctions_outline_hover_2x;
node_junctions_bg = s_node_junctions_bg;
node_junctions_outline = s_node_junctions_outline;
node_junctions_outline_hover = s_node_junctions_outline_hover;
node_junction_selecting = s_node_junction_selecting;
node_bg = s_node_bg;
node_coor_pin = s_node_coor_pin;
node_deprecated_badge = s_node_deprecated_badge;
node_frame_bg = s_node_frame_bg;
node_glow_border = s_node_bg_glow;
node_junction_name_bg = s_node_junction_name_bg;
node_new_badge = s_node_new_badge;
node_state = s_node_state;
node_trigger_icon = s_node_bg_trigger;
node_websocket_receive = s_websocket_receive;
node_websocket_send = s_websocket_send;
s_box_r2 = s_menu_white;
s_box_r2_clr = s_menu_box_bg;
s_box_r5_clr = s_group_label;
key_display = s_key_display;
palette_mask = s_palette_mask;
palette_selecting = s_palette_selecting;
timeline_color = s_ui_timeline_color;
tool_side = s_tool_side;
toolbar = s_toolbar;
ui_panel = s_ui_panel;
ui_panel_bg_cover = s_empty;
ui_panel_bg = s_ui_panel_bg;
ui_panel_tab = s_ui_panel_tab;
ui_scrollbar = s_ui_scroll_bar;
ui_selection_range_hori = s_ui_selection_range_hori;
ui_selection_range_sim_hori = s_ui_selection_range_sim_hori;
ui_selection = s_ui_selection;
ui_panel_selection = s_ui_panel_selection;
add_node_bg = s_add_node_bg;
anchor_arrow = s_anchor_arrow;
anchor_bone_stick = s_anchor_bone_stick;
anchor_rotate = s_anchor_rotate;
anchor_scale_hori = s_anchor_scale_hori;
anchor_scale = s_anchor_scale;
anchor_selector = s_anchor_selector;
anchor = s_anchor;
cursor_path_add = s_cursor_path_add;
cursor_path_anchor = s_cursor_path_anchor;
cursor_path_move = s_cursor_path_move;
cursor_path_remove = s_cursor_path_remove;
preview_bone_IK = s_bone_IK;
timeline_ease = s_timeline_ease;
timeline_key_ease = s_timelime_key_ease;
timeline_key_empty = s_timelime_key_empty;
timeline_keyframe_selecting = s_timeline_keyframe_selecting;
timeline_keyframe = s_timeline_keyframes;
timeline_onion_skin = s_timeline_onion_skin;
curve_presets = s_inspector_curve_presets;
inspector_channel = s_inspector_channel;
inspector_checkbox = s_inspector_checkbox;
obj_angle = s_inspector_obj_angle;
obj_direction = s_inspector_direction;
obj_distribute_h = s_obj_distribute_h;
obj_distribute_v = s_obj_distribute_v;
obj_draw_line = s_inspector_draw_line;
obj_hemicircle = s_inspector_obj_hemicircle;
object_halign = s_inspector_obj_halign;
object_valign = s_inspector_obj_valign;
bone_tool_add = s_bone_tool_add;
bone_tool_detach = s_bone_tool_detach;
bone_tool_IK = s_bone_tool_IK;
bone_tool_move = s_bone_tool_move;
bone_tool_remove = s_bone_tool_remove;
bone_tool_scale = s_bone_tool_scale;
canvas_draw_layer = s_canvas_draw_layer;
canvas_iso_angle = s_canvas_iso_angle;
canvas_fill_type = s_canvas_fill_type;
canvas_flip_h = s_canvas_flip_h;
canvas_flip_v = s_canvas_flip_v;
canvas_mirror_diag = s_canvas_mirror_diag;
canvas_mirror = s_canvas_mirror;
canvas_resize = s_canvas_resize;
canvas_rotate_ccw = s_canvas_rotate_ccw;
canvas_rotate_cw = s_canvas_rotate_cw;
canvas_tool_curve_icon = s_canvas_tool_curve;
canvas_tools_bucket = s_canvas_tools_bucket;
canvas_tools_ellip_fill = s_canvas_tools_ellip_fill;
canvas_tools_ellip = s_canvas_tools_ellip;
canvas_tools_iso_cube_fill = s_canvas_tools_iso_cube_fill;
canvas_tools_iso_cube_wire = s_canvas_tools_iso_cube_wire;
canvas_tools_iso_cube = s_canvas_tools_iso_cube;
canvas_tools_eraser = s_canvas_tools_eraser;
canvas_tools_extrude = s_canvas_tools_extrude;
canvas_tools_freeform_selection = s_canvas_tools_freeform_selection;
canvas_tools_freeform = s_canvas_tools_freeform;
canvas_tools_inset = s_canvas_tools_inset;
canvas_tools_magic_selection = s_canvas_tools_magic_selection;
canvas_tools_corner = s_canvas_tools_corner;
canvas_tools_node = s_canvas_tools_node;
canvas_tools_outline = s_canvas_tools_outline;
canvas_tools_pencil = s_canvas_tools_pencil;
canvas_tools_rect_fill = s_canvas_tools_rect_fill;
canvas_tools_rect = s_canvas_tools_rect;
canvas_tools_selection_brush = s_canvas_tools_selection_brush;
canvas_tools_selection_circle = s_canvas_selection_circle;
canvas_tools_selection_rectangle= s_canvas_selection_rectangle;
canvas_tools_skew = s_canvas_tools_skew;
control_add = s_control_add;
control_pin = s_control_pin;
crop_fit_height = s_crop_fit_height;
crop_fit_width = s_crop_fit_width;
crop_tool = s_crop_tool;
mesh_tool_delete = s_mesh_delete;
mesh_tool_edit = s_mesh_edit;
path_tools_add = s_path_tools_add;
path_tools_anchor = s_path_tools_anchor;
path_tools_circle = s_path_tools_circle;
path_tools_draw = s_path_tools_draw;
path_tools_rectangle = s_path_tools_rectangle;
path_tools_transform = s_path_tools_transform;
strand_comb = s_strand_tool_comb;
strand_cut = s_strand_tool_cut;
strand_grab = s_strand_tool_grab;
strand_push = s_strand_tool_push;
strand_stretch = s_strand_tool_stretch;
toolbar_check = s_toolbar_check;
tools_3d_rotate = s_3d_tool_rotate;
tools_3d_scale = s_3d_tool_scale;
tools_3d_transform_object = s_3d_tool_transform_object;
tools_3d_transform = s_3d_tool_transform;
tools_canvas_channel = s_canvas_channel;
button_def = s_button;
button_hide_fill = s_button_hide_fill;
button_hide_left = s_button_hide_left;
button_hide_middle = s_button_hide_middle;
button_hide_right = s_button_hide_right;
button_hide = s_button_hide;
button_left = s_button_left;
button_lime = s_button_lime;
button_middle = s_button_middle;
button_right = s_button_right;
checkbox_active = s_checkbox_active;
checkbox_def = s_checkbox;
progress_bar = s_progress_bar;
textbox_code = s_textbox_code_line;
textbox_header = s_text_box_header;
textbox = s_textbox;
widget_selecting = s_widget_highlight;
}
function ThemeColorDef() constructor {
main_dkblack = #191925;
main_mdblack = #1e1e2c;
main_black = #272736;
main_dkgrey = #3b3b4e;
main_dark = #4da6ff;
main_grey = #6d6d81;
main_ltgrey = #7e7e8f;
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;
}
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_hover = CDEF.main_white;
scrollbar_idle = CDEF.main_grey;
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;
panel_bg_clear_inner = CDEF.main_dkblack;
panel_bg_clear = CDEF.main_black;
panel_frame = CDEF.main_dkgrey;
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;
}