mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 06:26:42 +01:00
theme definition
This commit is contained in:
parent
140b6dc350
commit
d0d39e52e9
3 changed files with 162 additions and 10 deletions
|
@ -1,15 +1,15 @@
|
||||||
#region colors
|
#region colors
|
||||||
globalvar CDEF, COLORS, THEME_VALUE;
|
globalvar CDEF, COLORS, THEME_VALUE;
|
||||||
|
|
||||||
CDEF = {};
|
CDEF = {};
|
||||||
COLORS = {};
|
COLORS = new ThemeColor();
|
||||||
THEME_VALUE = {};
|
THEME_VALUE = new ThemeValue();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
function loadColor(theme = "default") {
|
function loadColor(theme = "default") {
|
||||||
CDEF = {};
|
CDEF = {};
|
||||||
COLORS = {};
|
COLORS = new ThemeColor();
|
||||||
THEME_VALUE = {};
|
THEME_VALUE = new ThemeValue();
|
||||||
|
|
||||||
_loadColor("default", true);
|
_loadColor("default", true);
|
||||||
_loadColor(theme);
|
_loadColor(theme);
|
||||||
|
|
|
@ -499,10 +499,12 @@ function Panel_Preview() : PanelContent() constructor {
|
||||||
right_menu_y += string_height("l");
|
right_menu_y += string_height("l");
|
||||||
draw_text(w - ui(8), right_menu_y, "x" + string(canvas_s));
|
draw_text(w - ui(8), right_menu_y, "x" + string(canvas_s));
|
||||||
|
|
||||||
right_menu_y += string_height("l");
|
if(pHOVER) {
|
||||||
var mpx = floor((mx - canvas_x) / canvas_s);
|
right_menu_y += string_height("l");
|
||||||
var mpy = floor((my - canvas_y) / canvas_s);
|
var mpx = floor((mx - canvas_x) / canvas_s);
|
||||||
draw_text(w - ui(8), right_menu_y, "[" + string(mpx) + ", " + string(mpy) + "]");
|
var mpy = floor((my - canvas_y) / canvas_s);
|
||||||
|
draw_text(w - ui(8), right_menu_y, "[" + string(mpx) + ", " + string(mpy) + "]");
|
||||||
|
}
|
||||||
|
|
||||||
var _node = getNodePreview();
|
var _node = getNodePreview();
|
||||||
if(_node == noone) return;
|
if(_node == noone) return;
|
||||||
|
|
|
@ -279,4 +279,154 @@ function Theme() constructor {
|
||||||
textbox_header = noone;
|
textbox_header = noone;
|
||||||
textbox_code = noone;
|
textbox_code = noone;
|
||||||
progress_bar = noone;
|
progress_bar = noone;
|
||||||
|
}
|
||||||
|
|
||||||
|
function ThemeColor() constructor {
|
||||||
|
bg = noone;
|
||||||
|
|
||||||
|
_main_accent = noone;
|
||||||
|
_main_text = noone;
|
||||||
|
_main_text_inner = noone;
|
||||||
|
_main_text_accent = noone;
|
||||||
|
_main_text_accent_inner = noone;
|
||||||
|
_main_text_on_accent = noone;
|
||||||
|
_main_text_sub = noone;
|
||||||
|
_main_text_sub_inner = noone;
|
||||||
|
_main_icon = noone;
|
||||||
|
_main_icon_on_inner = noone;
|
||||||
|
_main_icon_light = noone;
|
||||||
|
_main_icon_dark = noone;
|
||||||
|
_main_value_positive = noone;
|
||||||
|
_main_value_negative = noone;
|
||||||
|
|
||||||
|
lua_highlight_keyword = noone;
|
||||||
|
lua_highlight_bracklet = noone;
|
||||||
|
lua_highlight_function = noone;
|
||||||
|
lua_highlight_number = noone;
|
||||||
|
lua_highlight_string = noone;
|
||||||
|
|
||||||
|
collection_folder_empty = noone;
|
||||||
|
collection_folder_nonempty = noone;
|
||||||
|
collection_tree_line = noone;
|
||||||
|
collection_path_current_bg = noone;
|
||||||
|
|
||||||
|
dialog_array_edit_divider = noone;
|
||||||
|
dialog_array_edit_bg = noone;
|
||||||
|
dialog_splash_badge = noone;
|
||||||
|
dialog_about_bg = noone;
|
||||||
|
dialog_preference_prop_bg = noone;
|
||||||
|
dialog_add_node_collection = noone;
|
||||||
|
dialog_palette_divider = noone;
|
||||||
|
dialog_notification_bg_hover = noone;
|
||||||
|
dialog_notification_bg = noone;
|
||||||
|
dialog_notification_icon_bg = noone;
|
||||||
|
dialog_menubox_highlight = noone;
|
||||||
|
dialog_lua_ref_bg_args = noone;
|
||||||
|
dialog_lua_ref_bg_hover = noone;
|
||||||
|
dialog_lua_ref_bg = noone;
|
||||||
|
|
||||||
|
node_composite_bg = noone;
|
||||||
|
node_composite_bg_blend = noone;
|
||||||
|
node_composite_separator = noone;
|
||||||
|
node_composite_overlay_border = noone;
|
||||||
|
node_display_text_frame_fill = noone;
|
||||||
|
node_display_text_frame_outline = noone;
|
||||||
|
node_level_outline = noone;
|
||||||
|
node_level_shade = noone;
|
||||||
|
node_overlay_gizmo_inactive = noone;
|
||||||
|
node_blend_default = noone;
|
||||||
|
node_blend_tunnel = noone;
|
||||||
|
node_blend_number = noone;
|
||||||
|
node_blend_input = noone;
|
||||||
|
node_blend_loop = noone;
|
||||||
|
node_blend_vfx = noone;
|
||||||
|
node_blend_feedback = noone;
|
||||||
|
node_blend_collection = noone;
|
||||||
|
node_blend_simulation = noone;
|
||||||
|
node_blend_fluid = noone;
|
||||||
|
node_blend_canvas = noone;
|
||||||
|
node_blend_strand = noone;
|
||||||
|
node_path_overlay_control_line = noone;
|
||||||
|
node_wiggler_frame = noone;
|
||||||
|
node_border_file_drop = noone;
|
||||||
|
|
||||||
|
scrollbar_bg = noone;
|
||||||
|
scrollbar_hover = noone;
|
||||||
|
scrollbar_idle = noone;
|
||||||
|
|
||||||
|
panel_animation_frame_divider = noone;
|
||||||
|
panel_animation_keyframe_ease_line = noone;
|
||||||
|
panel_animation_loop_line = noone;
|
||||||
|
panel_animation_key_tool_unselected = noone;
|
||||||
|
panel_animation_keyframe_selected = noone;
|
||||||
|
panel_animation_keyframe_unselected = noone;
|
||||||
|
panel_animation_keyframe_hide = noone;
|
||||||
|
panel_animation_node_bg = noone;
|
||||||
|
panel_animation_dope_bg_hover = noone;
|
||||||
|
panel_animation_dope_bg = noone;
|
||||||
|
panel_animation_graph_bg = noone;
|
||||||
|
panel_animation_graph_select = noone;
|
||||||
|
panel_animation_graph_line = noone;
|
||||||
|
panel_animation_preview_frame = noone;
|
||||||
|
panel_animation_timeline_blend = noone;
|
||||||
|
panel_animation_timeline_top = noone;
|
||||||
|
|
||||||
|
panel_bg_clear_inner = noone;
|
||||||
|
panel_bg_clear = noone;
|
||||||
|
panel_tab = noone;
|
||||||
|
panel_tab_hover = noone;
|
||||||
|
panel_tab_inactive = noone;
|
||||||
|
panel_tab_text = noone;
|
||||||
|
panel_tab_icon = noone;
|
||||||
|
|
||||||
|
panel_graph_minimap_outline = noone;
|
||||||
|
panel_graph_node_dimension = noone;
|
||||||
|
panel_graph_minimap_focus = noone;
|
||||||
|
|
||||||
|
panel_inspector_key_separator = noone;
|
||||||
|
panel_inspector_group_hover = noone;
|
||||||
|
panel_inspector_group_bg = noone;
|
||||||
|
panel_inspector_output_label = noone;
|
||||||
|
|
||||||
|
panel_preview_grid = noone;
|
||||||
|
panel_preview_surface_outline = noone;
|
||||||
|
panel_preview_split_line = noone;
|
||||||
|
panel_preview_transparent = noone;
|
||||||
|
|
||||||
|
panel_toolbar_outline = noone;
|
||||||
|
panel_toolbar_separator = noone;
|
||||||
|
|
||||||
|
widget_curve_line = noone;
|
||||||
|
widget_curve_outline = noone;
|
||||||
|
widget_rotator_range = noone;
|
||||||
|
widget_rotator_range_hover = noone;
|
||||||
|
widget_rotator_guide = noone;
|
||||||
|
widget_surface_frame = noone;
|
||||||
|
widget_text_highlight = noone;
|
||||||
|
|
||||||
|
widget_text_dec_d = noone;
|
||||||
|
widget_text_dec_n = noone;
|
||||||
|
widget_text_dec_e = noone;
|
||||||
|
widget_text_dec_f = noone;
|
||||||
|
widget_text_dec_i = noone;
|
||||||
|
|
||||||
|
axis = noone;
|
||||||
|
histogram = noone;
|
||||||
|
heat = noone;
|
||||||
|
speed = noone;
|
||||||
|
}
|
||||||
|
|
||||||
|
function ThemeValue() constructor {
|
||||||
|
highlight_corner_radius = noone;
|
||||||
|
selection_corner_radius = noone;
|
||||||
|
|
||||||
|
panel_padding = noone;
|
||||||
|
panel_margin = noone;
|
||||||
|
panel_corner_radius = noone;
|
||||||
|
panel_notification_padding = noone;
|
||||||
|
panel_tab_extend = noone;
|
||||||
|
|
||||||
|
minimap_corner_radius = noone;
|
||||||
|
slider_type = noone;
|
||||||
|
font_aa = noone;
|
||||||
}
|
}
|
Loading…
Reference in a new issue