diff options
author | Andreas Kling <kling@serenityos.org> | 2022-07-31 18:41:07 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-01 10:29:53 +0200 |
commit | 548081ea23f131ae129ff5e1f2ca70ea4eda2da9 (patch) | |
tree | 5fca2c60c4da5d4beee5a02ddbdc26276b904c54 /Userland/Services/WebContent | |
parent | 419e986dccb95d185b2468f016e69c8f39c03b9d (diff) | |
download | serenity-548081ea23f131ae129ff5e1f2ca70ea4eda2da9.zip |
Userland+Base: Make the window titlebar font configurable separately
Instead of defaulting to "bold variant of the system default font",
let's allow the user to set any font they want as the titlebar font.
Diffstat (limited to 'Userland/Services/WebContent')
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.cpp | 3 | ||||
-rw-r--r-- | Userland/Services/WebContent/ConnectionFromClient.h | 2 | ||||
-rw-r--r-- | Userland/Services/WebContent/WebContentServer.ipc | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/Userland/Services/WebContent/ConnectionFromClient.cpp b/Userland/Services/WebContent/ConnectionFromClient.cpp index 47830e7408..f5148e7c4d 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.cpp +++ b/Userland/Services/WebContent/ConnectionFromClient.cpp @@ -65,10 +65,11 @@ void ConnectionFromClient::update_system_theme(Core::AnonymousBuffer const& them m_page_host->set_palette_impl(*impl); } -void ConnectionFromClient::update_system_fonts(String const& default_font_query, String const& fixed_width_font_query) +void ConnectionFromClient::update_system_fonts(String const& default_font_query, String const& fixed_width_font_query, String const& window_title_font_query) { Gfx::FontDatabase::set_default_font_query(default_font_query); Gfx::FontDatabase::set_fixed_width_font_query(fixed_width_font_query); + Gfx::FontDatabase::set_window_title_font_query(window_title_font_query); } void ConnectionFromClient::update_screen_rects(Vector<Gfx::IntRect> const& rects, u32 main_screen) diff --git a/Userland/Services/WebContent/ConnectionFromClient.h b/Userland/Services/WebContent/ConnectionFromClient.h index 8071e5d3fe..ffb00dbfab 100644 --- a/Userland/Services/WebContent/ConnectionFromClient.h +++ b/Userland/Services/WebContent/ConnectionFromClient.h @@ -41,7 +41,7 @@ private: Web::Page const& page() const; virtual void update_system_theme(Core::AnonymousBuffer const&) override; - virtual void update_system_fonts(String const&, String const&) override; + virtual void update_system_fonts(String const&, String const&, String const&) override; virtual void update_screen_rects(Vector<Gfx::IntRect> const&, u32) override; virtual void load_url(URL const&) override; virtual void load_html(String const&, URL const&) override; diff --git a/Userland/Services/WebContent/WebContentServer.ipc b/Userland/Services/WebContent/WebContentServer.ipc index b8b01749f3..8b7bb8a3b0 100644 --- a/Userland/Services/WebContent/WebContentServer.ipc +++ b/Userland/Services/WebContent/WebContentServer.ipc @@ -8,7 +8,7 @@ endpoint WebContentServer { update_system_theme(Core::AnonymousBuffer theme_buffer) =| - update_system_fonts(String default_font_query, String fixed_width_font_query) =| + update_system_fonts(String default_font_query, String fixed_width_font_query, String window_title_font_query) =| update_screen_rects(Vector<Gfx::IntRect> rects, u32 main_screen_index) =| load_url(URL url) =| |