From 754f504286760945c633df8b5feac1858a0d74f4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 18 Jul 2012 16:39:42 +0530 Subject: [PATCH] Re-organize ebook viewer preferences --- src/calibre/gui2/viewer/config.ui | 612 +++++++++++++++++------------- 1 file changed, 338 insertions(+), 274 deletions(-) diff --git a/src/calibre/gui2/viewer/config.ui b/src/calibre/gui2/viewer/config.ui index 4993f48c99..546ed4ac44 100644 --- a/src/calibre/gui2/viewer/config.ui +++ b/src/calibre/gui2/viewer/config.ui @@ -39,283 +39,352 @@ - - - &Font options + + + QToolBox::tab { + background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, + stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, + stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3); + border-radius: 5px; + color: black; + font-weight: bold; + } + + QToolBox::tab:selected { + font-style: italic; + } + +QToolBox::tab:hover { + color: red; + font-style: italic; +} - - - - - + + 0 + + + + + 0 + 0 + 811 + 416 + + + + &Font options + + + + + + Se&rif family: + + + serif_family + + + + + + + + + + &Sans family: + + + sans_family + + + + + + + + + + &Monospace family: + + + mono_family + + + + + + + + + + &Default font size: + + + default_font_size + + + + + + + px + + + 8 + + + 40 + + + + + + + Monospace &font size: + + + mono_font_size + + + + + + + px + + + 8 + + + 50 + + + + + + + S&tandard font: + + + standard_font + + + + + + - Se&rif family: + Serif - - serif_family - - - - - - - - + + - &Sans family: + Sans-serif - - sans_family - - - - - - - - + + - &Monospace family: + Monospace - - mono_family - - - - - - - - - - &Default font size: - - - default_font_size - - - - - - - px - - - 8 - - - 40 - - - - - - - Monospace &font size: - - - mono_font_size - - - - - - - px - - - 8 - - - 50 - - - - - - - S&tandard font: - - - standard_font - - - - - - - - Serif - - - - - Sans-serif - - - - - Monospace - - - - - - - - - - - - - - - H&yphenate (break line in the middle of large words) - - - - - - - The default language to use for hyphenation rules. If the book does not specify a language, this will be used. - - - - - - - Default &language for hyphenation: - - - hyphenate_default_lang - - - - - - - Page flip &duration: - - - opt_page_flip_duration - - - - - - - disabled - - - secs - - - 1 - - - 0.100000000000000 - - - 3.000000000000000 - - - 0.100000000000000 - - - 0.500000000000000 - - - - - - - Set the maximum width that the book's text and pictures will take when in fullscreen mode. This allows you to read the book text without it becoming too wide. - - - px - - - 100 - - - 10000 - - - - - - - Maximum text width in &fullscreen: - - - max_fs_width - - - - - - - Font &magnification step size: - - - opt_font_mag_step - - - - - - - The amount by which the font size is increased/decreased + + + + + + + Font &magnification step size: + + + opt_font_mag_step + + + + + + + The amount by which the font size is increased/decreased when you click the font size larger/smaller buttons - - - % - - - - - - - &Resize images larger than the viewer window (needs restart) - - - - - - - Remember last used &window size and layout - - - - - - - Mouse &wheel flips pages - - - - - - - Remember the &current page when quitting - - - - - - - Line &scrolling stops at page breaks - - - - - - - Show &clock in full screen mode - - - - + + + % + + + + + + + + + 0 + 0 + 811 + 416 + + + + F&ull screen options + + + + + + Maximum text width in &fullscreen: + + + max_fs_width + + + + + + + Set the maximum width that the book's text and pictures will take when in fullscreen mode. This allows you to read the book text without it becoming too wide. + + + px + + + 100 + + + 10000 + + + + + + + Show &clock in full screen mode + + + + + + + + + 0 + 0 + 811 + 416 + + + + Page Fl&ip options + + + + + + Page flip &duration: + + + opt_page_flip_duration + + + + + + + disabled + + + secs + + + 1 + + + 0.100000000000000 + + + 3.000000000000000 + + + 0.100000000000000 + + + 0.500000000000000 + + + + + + + Mouse &wheel flips pages + + + + + + + Line &scrolling stops at page breaks + + + + + + + &Resize images larger than the viewer window (needs restart) + + + + + + + + + 0 + 0 + 811 + 416 + + + + &Miscellaneous options + + + + + + H&yphenate (break line in the middle of large words) + + + + + + + Default &language for hyphenation: + + + hyphenate_default_lang + + + + + + + The default language to use for hyphenation rules. If the book does not specify a language, this will be used. + + + + + + + Remember last used &window size and layout + + + + + + + Remember the &current page when quitting + + + + + + @@ -364,11 +433,6 @@ - serif_family - sans_family - mono_family - max_fs_width - opt_remember_window_size buttonBox