var ColorsSet = { // scrolls "scrollbar_thumb": "#cdcdcd", "scrollbar_thumb_hover": "#a6a6a6", "scrollbar_track": "#e4e4e4", // toolbar "toolbar_background": "#f2f2f2", "toolbar_border_bottom": "#cccccc", "button_border": "#f2f2f2", "button_background": "#f2f2f2", "button_hover_border": "#bebebe", "button_hover_background": "#dcdcdc", "button_icons": "#808080", "filter_box_background": "#fafafa", "filter_box_border": "#cccccc", "filter_box_font": "#333333", "filter_clear_icon": "#808080", // lists "pin_list_border_bottom": "#cccccc", "pin_list_background": "#fafafa", "tab_list_background": "#fafafa", // tabs "tab_background": "#f2f2f2", "tab_border": "#bebebe", "tab_hover_background": "#d7d7d7", "tab_hover_border": "#878787", "tab_selected_background": "#e5f3fb", "tab_selected_border": "#70c0e7", "tab_selected_hover_border": "#78aee5", "tab_selected_hover_background": "#d0e2f0", "tab_filtered": "#e8e000", "tab_filtered_highlighted": "#ffa500", "tab_filtered_selected": "#0f8079", "tab_filtered_selected_active": "#1299a9", "active_font_weight": "bold", // tabs title "tab_title": "#000000", "tab_title_active": "#000000", "tab_title_discarded": "#7e7e7e", // drag&drop placeholder indicator "drag_indicator": "#339bf3", // close button "close_x": "#7d7d7d", "close_hover_x": "#fbfcfe", "close_hover_border": "#757676", "close_hover_background": "#939394", // trees expand "expand_open_border": "#339bf3", "expand_open_background": "#d0e2f0", "expand_closed_border": "#969696", "expand_closed_background": "#eaeaea", "expand_lines": "#cccccc", "tabs_menu_font": "#333333", "tabs_menu_background": "#fafafa", "tabs_menu_border": "#bebebe", "tabs_menu_hover_background": "#efefef", "tabs_menu_hover_border": "#bebebe", "tabs_menu_separator": "#efefef" } var TabsSizeSets = [ //0 { "pin_width": "22px", "pin_height": "20px", "tab_height": "15px", "tab_height_line": "17px", "expand_box_size": "5px", "expand_box_top": "4px", "expand_box_left": "3px", "expand_line_h_top": "7px", "expand_line_h_width": "12px", "expand_line_h_oc_width": "3px", "expand_line_v_top": "-7px", "expand_line_v_left": "0px", "expand_line_v_last_height": "15px", "title_padding_with_close": "20px", "title_font_size": "10.5px", "title_padding_left": "19px", "drag_area_top": "6px", "drag_area_bottom": "4px", "close_top": "1px", "close_right": "1px", "close_size": "11px", "favicon_size": "13px 13px", "favicon_pos": "2px center" }, //1 { "pin_width": "24px", "pin_height": "22px", "tab_height": "17px", "tab_height_line": "19px", "expand_box_size": "5px", "expand_box_top": "5px", "expand_box_left": "3px", "expand_line_h_top": "8px", "expand_line_h_width": "12px", "expand_line_h_oc_width": "3px", "expand_line_v_top": "-8px", "expand_line_v_left": "0px", "expand_line_v_last_height": "17px", "title_padding_with_close": "20px", "title_font_size": "10.5px", "title_padding_left": "20px", "drag_area_top": "7px", "drag_area_bottom": "5px", "close_top": "2px", "close_right": "2px", "close_size": "11px", "favicon_size": "14px 14px", "favicon_pos": "3px center" }, //2 { "pin_width": "26px", "pin_height": "24px", "tab_height": "19px", "tab_height_line": "23px", "expand_box_size": "5px", "expand_box_top": "6px", "expand_box_left": "3px", "expand_line_h_top": "9px", "expand_line_h_width": "12px", "expand_line_h_oc_width": "3px", "expand_line_v_top": "-9px", "expand_line_v_left": "0px", "expand_line_v_last_height": "19px", "title_padding_with_close": "24px", "title_font_size": "12px", "title_padding_left": "25px", "drag_area_top": "7px", "drag_area_bottom": "5px", "close_top": "2px", "close_right": "2px", "close_size": "13px", "favicon_size": "16px 16px", "favicon_pos": "4px center" }, //3 { "pin_width": "28px", "pin_height": "26px", "tab_height": "21px", "tab_height_line": "25px", "expand_box_size": "5px", "expand_box_top": "7px", "expand_box_left": "3px", "expand_line_h_top": "10px", "expand_line_h_width": "12px", "expand_line_h_oc_width": "3px", "expand_line_v_top": "-10px", "expand_line_v_left": "0px", "expand_line_v_last_height": "21px", "title_padding_with_close": "24px", "title_font_size": "12px", "title_padding_left": "25px", "drag_area_top": "8px", "drag_area_bottom": "5px", "close_top": "3px", "close_right": "3px", "close_size": "13px", "favicon_size": "16px 16px", "favicon_pos": "4px center" }, //4 { "pin_width": "30px", "pin_height": "28px", "tab_height": "23px", "tab_height_line": "26px", "expand_box_size": "5px", "expand_box_top": "8px", "expand_box_left": "3px", "expand_line_h_top": "11px", "expand_line_h_width": "12px", "expand_line_h_oc_width": "3px", "expand_line_v_top": "-11px", "expand_line_v_left": "0px", "expand_line_v_last_height": "23px", "title_padding_with_close": "24px", "title_font_size": "12.5px", "title_padding_left": "25px", "drag_area_top": "9px", "drag_area_bottom": "6px", "close_top": "4px", "close_right": "4px", "close_size": "14px", "favicon_size": "16px 16px", "favicon_pos": "4px center" } ]; var CurrentThemeVersion = 1; var TabsSizeSet = 2; var ScrollbarPinList = 4; var ScrollbarTabList = 16; var ToolbarShow = true; var ToolbarSet = $("#toolbar").html(); function SaveTheme(themeName){ var themeObj = { "toolbar": ToolbarSet, "ToolbarShow": ToolbarShow, "ColorsSet": ColorsSet, "TabsSizeSetNumber": TabsSizeSet, "TabsSizeSet": TabsSizeSets[TabsSizeSet], "ScrollbarPinList": ScrollbarPinList, "ScrollbarTabList": ScrollbarTabList, "theme_version": CurrentThemeVersion }; localStorage["theme"+themeName] = JSON.stringify(themeObj); return themeObj; } if (localStorage.getItem("themeDefault") === null){ SaveTheme("Default"); localStorage["current_theme"] = "Default"; } else { var theme = JSON.parse(localStorage["themeDefault"]); if (theme.theme_version != CurrentThemeVersion){ SaveTheme("Default"); } }