options.inc

来自「一个很有名的浏览器」· INC 代码 · 共 1,215 行 · 第 1/3 页

INC
1,215
字号
		"'System' stands for a codepage determined by a selected locale.")),	/* Keep options in alphabetical order. */	INIT_OPT_TREE("", N_("User interface"),		"ui", OPT_SORT,		N_("User interface options.")),	INIT_OPT_TREE("ui", N_("Color settings"),		"colors", 0,		N_("Default user interface color settings.")),	/* ========================================================== */	/* ============= BORING PART (colors) START ================= */	/* ========================================================== */	/* XXX: All bfu colors needs to have both 'text' and 'background'	 *	options even if it is not used. get_bfu_color() depends	 *	on it. */	/* The colors and mono tree should be similar but with different default	 * values of course so always use the macros below. */#define DO_INIT_OPT_COLORS(subtree, capt, name, fg, bg, desc)		\	INIT_OPT_TREE(subtree, capt, name, 0, desc),			\	INIT_OPT_COLOR(subtree "." name, N_("Text color"),		\		      "text", 0, fg, N_("Default text color.")),	\	INIT_OPT_COLOR(subtree "." name, N_("Background color"), 	\		      "background", 0, bg, N_("Default background color."))#define INIT_OPT_COLORS(subtree, capt, name, cfg, cbg, mfg, mbg, desc)	\	DO_INIT_OPT_COLORS("ui.colors.color" subtree, capt, name, cfg, cbg, desc), \	DO_INIT_OPT_COLORS("ui.colors.mono" subtree, capt, name, mfg, mbg, desc)#define INIT_OPT_COLOR_TREE(subtree, capt, name, desc)			\	INIT_OPT_TREE("ui.colors.color" subtree, capt, name, 0, desc),	\	INIT_OPT_TREE("ui.colors.mono" subtree, capt, name, 0, desc)	INIT_OPT_TREE("ui.colors", N_("Color terminals"),		"color", 0,		N_("Color settings for color terminal.")),	INIT_OPT_TREE("ui.colors", N_("Non-color terminals"),		"mono", 0,		N_("Color settings for non-color terminal.")),	/* FIXME: obsolete, how to alias them correctly ? --Zas */	INIT_OPT_COLOR_TREE("", N_("Main menu bar"),		"mainmenu",		N_("Main menu bar colors.")),	INIT_OPT_COLORS(".mainmenu", N_("Unselected main menu bar item"),		"normal", "black", "white", "black", "white",		N_("Unselected main menu bar item colors.")),	INIT_OPT_COLORS(".mainmenu", N_("Selected main menu bar item"),		"selected", "green", "black", "gray", "black",		N_("Selected main menu bar item colors.")),	INIT_OPT_COLOR_TREE(".mainmenu", N_("Hotkey"),		"hotkey",		N_("Main menu hotkey colors.")),	INIT_OPT_COLORS(".mainmenu.hotkey", N_("Unselected hotkey"),		"normal", "darkred", "white", "black", "white",		N_("Main menu unselected hotkey colors.")),	INIT_OPT_COLORS(".mainmenu.hotkey", N_("Selected hotkey"),		"selected", "darkred", "green", "black", "white",		N_("Main menu selected hotkey colors.")),	INIT_OPT_COLOR_TREE("", N_("Menu bar"),		"menu",		N_("Menu bar colors.")),	INIT_OPT_COLORS(".menu", N_("Unselected menu item"),		"normal", "black", "white", "black", "white",		N_("Unselected menu item colors.")),	INIT_OPT_COLORS(".menu", N_("Selected menu item"),		"selected", "black", "green", "gray", "black",		N_("Selected menu item colors.")),	INIT_OPT_COLORS(".menu", N_("Marked menu item"),		"marked", "red", "white", "gray", "white",		N_("Marked menu item colors.")),	INIT_OPT_COLOR_TREE(".menu", N_("Hotkey"),		"hotkey",		N_("Menu item hotkey colors.")),	INIT_OPT_COLORS(".menu.hotkey", N_("Unselected hotkey"),		"normal", "darkred", "white", "gray", "black",		N_("Menu item unselected hotkey colors.")),	INIT_OPT_COLORS(".menu.hotkey", N_("Selected hotkey"),		"selected", "darkred", "green", "gray", "black",		N_("Menu item selected hotkey colors.")),	INIT_OPT_COLORS(".menu", N_("Menu frame"),		"frame", "black", "white", "black", "white",		N_("Menu frame colors.")),	INIT_OPT_COLOR_TREE("", N_("Dialog"),		"dialog",		N_("Dialog colors.")),	/* Compatibility alias: added by jonas at 2003-10-18, 0.5pre7.CVS. */	INIT_OPT_ALIAS("ui.colors.color.dialog", "background",		"ui.colors.color.dialog.generic.background"),	/* Compatibility alias: added by jonas at 2003-10-18, 0.5pre7.CVS. */	INIT_OPT_ALIAS("ui.colors.mono.dialog", "background",		"ui.colors.mono.dialog.generic.background"),	INIT_OPT_COLORS(".dialog", N_("Generic"),		"generic", "black", "white", "black", "white",		N_("Generic dialog colors.")),	INIT_OPT_COLORS(".dialog", N_("Frame"),		"frame", "black", "white", "black", "white",		N_("Dialog frame colors.")),	INIT_OPT_COLORS(".dialog", N_("Scrollbar"),		"scrollbar", "black", "blue", "white", "black",		N_("Scrollbar colors.")),	INIT_OPT_COLORS(".dialog", N_("Selected scrollbar"),		"scrollbar-selected", "black", "green", "black", "white",		N_("Scrollbar selected colors.")),	INIT_OPT_COLORS(".dialog", N_("Title"),		"title", "darkred", "white", "gray", "black",		N_("Dialog title colors.")),	INIT_OPT_COLORS(".dialog", N_("Text"),		"text", "black", "white", "black", "white",		N_("Dialog text colors.")),	INIT_OPT_COLORS(".dialog", N_("Checkbox"),		"checkbox", "darkred", "white", "black", "white",		N_("Dialog checkbox colors.")),	INIT_OPT_COLORS(".dialog", N_("Selected checkbox"),		"checkbox-selected", "yellow", "green", "white", "black",		N_("Dialog selected checkbox colors.")),	INIT_OPT_COLORS(".dialog", N_("Checkbox label"),		"checkbox-label", "black", "white", "black", "white",		N_("Dialog checkbox label colors.")),	INIT_OPT_COLORS(".dialog", N_("Button"),		"button", "white", "blue", "black", "white",		N_("Dialog button colors.")),	INIT_OPT_COLORS(".dialog", N_("Selected button"),		"button-selected", "yellow", "green", "white", "black",		N_("Dialog selected button colors.")),	INIT_OPT_COLORS(".dialog", N_("Button shortcut"),		"button-shortcut", "yellow", "blue", "white", "black",		N_("Dialog button colors.")),	INIT_OPT_COLORS(".dialog", N_("Selected button shortcut"),		"button-shortcut-selected", "white", "blue", "black", "white",		N_("Dialog selected button colors.")),	INIT_OPT_COLORS(".dialog", N_("Text field"),		"field", "white", "blue", "gray", "black",		N_("Dialog text field colors.")),	INIT_OPT_COLORS(".dialog", N_("Text field text"),		"field-text", "yellow", "blue", "gray", "black",		N_("Dialog field text colors.")),	INIT_OPT_COLORS(".dialog", N_("Meter"),		"meter", "white", "blue", "gray", "black",		N_("Dialog meter colors.")),	INIT_OPT_COLORS(".dialog", N_("Shadow"),		"shadow", "black", "black", "black", "black",		N_("Dialog shadow colors (see ui.shadows option).")),	INIT_OPT_COLOR_TREE("", N_("Title bar"),		"title",		N_("Title bar colors.")),	INIT_OPT_COLORS(".title", N_("Generic title bar"),		"title-bar", "black", "white", "gray", "black",		N_("Generic title bar colors.")),	INIT_OPT_COLORS(".title", N_("Title bar text"),		"title-text", "black", "white", "gray", "black",		N_("Title bar text colors.")),	INIT_OPT_COLOR_TREE("", N_("Status bar"),		"status",		N_("Status bar colors.")),	INIT_OPT_COLORS(".status", N_("Generic status bar"),		"status-bar", "black", "white", "black", "white",		N_("Generic status bar colors.")),	INIT_OPT_COLORS(".status", N_("Status bar text"),		"status-text", "black", "white", "black", "white",		N_("Status bar text colors.")),	INIT_OPT_COLOR_TREE("", N_("Tabs bar"),		"tabs",		N_("Tabs bar colors.")),	INIT_OPT_COLORS(".tabs", N_("Unvisited tab"),		"unvisited", "darkblue", "white", "gray", "white",		N_("Tab colors for tabs that have not been\n"		   "selected since they completed loading.")),	INIT_OPT_COLORS(".tabs", N_("Unselected tab"),		"normal", "black", "white", "black", "white",		N_("Unselected tab colors.")),	INIT_OPT_COLORS(".tabs", N_("Loading tab"),		"loading", "darkred", "white", "gray", "white",		N_("Tab colors for tabs that are loading in the background.")),	INIT_OPT_COLORS(".tabs", N_("Selected tab"),		"selected", "black", "green", "gray", "black",		N_("Selected tab colors.")),	INIT_OPT_COLORS(".tabs", N_("Tab separator"),		"separator", "brown", "white", "gray", "white",		N_("Tab separator colors.")),	INIT_OPT_COLORS("", N_("Searched strings"),		"searched", "black", "lime", "black", "white",		N_("Searched string highlight colors.")),	/* ========================================================== */	/* ============= BORING PART (colors) END =================== */	/* ========================================================== */	/* Keep options in alphabetical order. */	INIT_OPT_TREE("ui", N_("Dialog settings"),		"dialogs", 0,		N_("Dialogs-specific appearance and behaviour settings.")),	INIT_OPT_INT("ui.dialogs", N_("Minimal height of listbox widget"),		"listbox_min_height", 0, 1, 20, 10,		N_("Minimal height of the listbox widget (used e.g. for bookmarks\n"		"or global history).")),	INIT_OPT_BOOL("ui.dialogs", N_("Drop shadows"),		"shadows", 0, 0,		N_("Make dialogs drop shadows (the shadows are solid, you can\n"		"adjust their color by ui.colors.*.dialog.shadow). You may\n"		"also want to eliminate the wide borders by adjusting setup.h.")),	INIT_OPT_BOOL("ui.dialogs", N_("Underline menu hotkeys"),		"underline_hotkeys", 0, 0,		N_("Whether to underline hotkeys in menus to make them more\n"		"visible. Requires the underlining is enabled for the terminal.")),	INIT_OPT_BOOL("ui.dialogs", N_("Underline button shortcuts"),		"underline_button_shortcuts", 0, 0,		N_("Whether to underline button shortcuts to make them more\n"		"visible. Requires the underlining is enabled for the terminal.")),	INIT_OPT_TREE("ui", N_("Timer options"),		"timer", 0,		N_("Timed action after certain interval of user inactivity. Someone can\n"		"even find this useful, although you may not believe that.")),#ifdef CONFIG_LEDS	INIT_OPT_INT("ui.timer", N_("Enable"),		"enable", 0, 0, 2, 0,		N_("Whether to enable the timer or not:\n"		"0 is don't count down anything\n"		"1 is count down, but don't show the timer\n"		"2 is count down and show the timer near LEDs")),#else	INIT_OPT_INT("ui.timer", N_("Enable"),		"enable", 0, 0, 2, 0,		N_("Whether to enable the timer or not:\n"		"0 is don't count down anything\n"		"1 is count down, but don't show the timer\n"		"2 is count down and show the timer near LEDs (DISABLED)")),#endif	INIT_OPT_INT("ui.timer", N_("Duration"),		"duration", 0, 1, 86400, 86400,		N_("Inactivity timeout in seconds. The maximum of one day\n"		"should be enough for just everyone (TM).")),	INIT_OPT_STRING("ui.timer", N_("Action"),		"action", 0, "",		N_("Keybinding action to be triggered when timer reaches zero.")),	INIT_OPT_TREE("ui", N_("Window tabs"),		"tabs", 0,		N_("Window tabs settings.")),	INIT_OPT_INT("ui.tabs", N_("Display tabs bar"),		"show_bar", 0, 0, 2, 1,		N_("Show tabs bar on the screen:\n"		"0 means never\n"		"1 means only if two or more tabs are open\n"		"2 means always")),	INIT_OPT_BOOL("ui.tabs", N_("Wrap-around tabs cycling"),		"wraparound", 0, 1,		N_("When moving right from the last tab, jump at the first one, and\n"		"vice versa.")),	INIT_OPT_BOOL("ui.tabs", N_("Confirm tab closing"),		"confirm_close", 0, 0,		N_("When closing a tab show confirmation dialog.")),	INIT_OPT_LANGUAGE("ui", N_("Language"),		"language", 0,		N_("Language of user interface. 'System' means that the language will\n"		"be extracted from the environment dynamically.")),	INIT_OPT_BOOL("ui", N_("Display status bar"),		"show_status_bar", 0, 1,		N_("Show status bar on the screen.")),	INIT_OPT_BOOL("ui", N_("Display title bar"),		"show_title_bar", 0, 1,		N_("Show title bar on the screen.")),	INIT_OPT_BOOL("ui", N_("Display goto dialog in new tabs"),		"startup_goto_dialog", 0, 1,		N_("Pop up goto dialog in newly created tabs when there's no homepage\n"		"set. This means also showing goto dialog on startup.")),	INIT_OPT_BOOL("ui", N_("Show a message box when file is saved successfully"),		"success_msgbox", 0, 1,		N_("When you pressed a [ Save ] button in some manager, this option\n"		"will make sure that a box confirming success of the operation will\n"		"pop up.")),	INIT_OPT_TREE("ui", N_("Sessions"),		"sessions", OPT_SORT,		N_("Sessions settings.")),	INIT_OPT_BOOL("ui.sessions", N_("Auto save session"),		"auto_save", 0, 0,		N_("Automatically save the session when quitting.\n"		"This feature requires bookmark support.")),	INIT_OPT_BOOL("ui.sessions", N_("Auto restore session"),		"auto_restore", 0, 0,		N_("Automatically restore the session at start.\n"		"This feature requires bookmark support.")),	INIT_OPT_STRING("ui.sessions", N_("Auto save and restore session folder name"),		"auto_save_foldername", 0, "Auto saved session",		N_("Name of the bookmarks folder used for auto saving and restoring session.\n"		"The name has to be unique. Any folders with the same name will be deleted.\n"		"This only makes sense with bookmark support.")),	INIT_OPT_STRING("ui.sessions", N_("Homepage URI"),		"homepage", 0, WWW_HOME_URL,		N_("The URI to load either at startup time when no URI was given\n"		"on the command line or when requested by the goto-url-home action.\n"		"Set to \"\" if the environment variable WWW_HOME should be used\n"		"as homepage URI instead.")),#ifdef HAVE_STRFTIME	INIT_OPT_STRING("ui", N_("Date format"),		"date_format", 0, "%b %e %H:%M",		N_("Date format to use in dialogs. See strftime(3).")),#endif	INIT_OPT_BOOL("ui", N_("Set window title"),		"window_title", 0, 1,		N_("Set the window title when running in a windowing environment\n"		"in an xterm-like terminal. This way the document's title is\n"		"shown on the window titlebar.")),	/* Compatibility alias: added by pasky at 2004-07-22, 0.9.CVS. */	INIT_OPT_ALIAS("", "secure_file_saving", "infofiles.secure_save"),	NULL_OPTION_INFO,};/* vim: set filetype=c : */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?