aboutsummaryrefslogtreecommitdiff
path: root/src/kristall.hpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-01-01 19:26:15 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-01-01 15:02:42 +0100
commit19c8bf98885074617f9cc0a0b2f60ebf47ddf714 (patch)
tree570b591a687e574bddd0c79009e2829d9f496f78 /src/kristall.hpp
parent808288ce691a3c1520db513c7cff79fd22d3c53f (diff)
downloadkristall-19c8bf98885074617f9cc0a0b2f60ebf47ddf714.tar.gz
Added UI density option.
'Compact' is the default - saves screen space a bit. The old layout is available in the 'Classic' option
Diffstat (limited to 'src/kristall.hpp')
-rw-r--r--src/kristall.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/kristall.hpp b/src/kristall.hpp
index 118a31c..b191aec 100644
--- a/src/kristall.hpp
+++ b/src/kristall.hpp
@@ -19,6 +19,12 @@ enum class Theme : int
dark = 1,
};
+enum class UIDensity : int
+{
+ compact = 0,
+ classic = 1
+};
+
struct GenericSettings
{
enum TextDisplay {
@@ -35,6 +41,7 @@ struct GenericSettings
QString start_page = "about:favourites";
Theme theme = Theme::light;
+ UIDensity ui_density = UIDensity::compact;
TextDisplay text_display = FormattedText;
bool enable_text_decoration = false;
bool use_os_scheme_handler = false;
@@ -103,6 +110,8 @@ namespace kristall
void saveSettings();
void setTheme(Theme theme);
+
+ void setUiDensity(UIDensity density, bool previewing);
}
#endif // KRISTALL_HPP