diff options
author | dec05eba <dec05eba@protonmail.com> | 2025-06-08 12:20:13 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2025-06-08 12:20:13 +0200 |
commit | c5dec7a56157c71d124dafe191acfe95aa0fd4af (patch) | |
tree | 7ef0752d632221a4ef19ae23cc60fbb4265a0567 /include | |
parent | c71a676edf4ccc583652e1f31c571f3cd898d60e (diff) |
Add --theme option, system_mpv_profile config and press g in matrix to start /encrypt chat immediately
Diffstat (limited to 'include')
-rw-r--r-- | include/Config.hpp | 3 | ||||
-rw-r--r-- | include/QuickMedia.hpp | 2 | ||||
-rw-r--r-- | include/VideoPlayer.hpp | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/include/Config.hpp b/include/Config.hpp index e737fee..fe210a6 100644 --- a/include/Config.hpp +++ b/include/Config.hpp @@ -132,6 +132,7 @@ namespace QuickMedia { FileManagerConfig file_manager; bool use_system_fonts = false; bool use_system_mpv_config = false; + std::string system_mpv_profile; bool enable_shaders = true; std::string theme = "default"; float scale = 1.0f; @@ -140,5 +141,5 @@ namespace QuickMedia { bool low_latency_mode = false; }; - const Config& get_config(); + Config& get_config(); }
\ No newline at end of file diff --git a/include/QuickMedia.hpp b/include/QuickMedia.hpp index 038cf19..c316f5e 100644 --- a/include/QuickMedia.hpp +++ b/include/QuickMedia.hpp @@ -119,7 +119,7 @@ namespace QuickMedia { void set_clipboard(const std::string &str); bool youtube_dl_extract_url(const std::string &url, std::string &video_url, std::string &audio_url); private: - void init(mgl::WindowHandle parent_window, std::string &program_path, bool no_dialog); + void init(mgl::WindowHandle parent_window, std::string &program_path, bool no_dialog, const std::string &theme); const char* get_youtube_dl_program_name(); void check_youtube_dl_installed(const std::string &plugin_name); void load_plugin_by_name(std::vector<Tab> &tabs, int &start_tab_index, FileManagerMimeType fm_mime_type, FileSelectionHandler file_selection_handler, std::string instance); diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp index bea03fc..ea5996a 100644 --- a/include/VideoPlayer.hpp +++ b/include/VideoPlayer.hpp @@ -39,6 +39,7 @@ namespace QuickMedia { mgl::WindowHandle parent_window; bool no_video = false; bool use_system_mpv_config = false; + std::string system_mpv_profile; bool use_system_input_config = false; // |use_system_mpv_config| has to be true if this is set to true bool keep_open = false; bool resume = false; |