mirror of
https://repo.dec05eba.com/gpu-screen-recorder-ui
synced 2026-03-31 09:17:04 +09:00
Improve quality of screenshot and settings icons, especially for smaller resolutions
This commit is contained in:
4
TODO
4
TODO
@@ -189,3 +189,7 @@ Make it possible to change controller hotkeys. Also read from /dev/input/eventN
|
|||||||
Add option to copy screenshot to clipboard. Does it work properly on Wayland compositors? Maybe need to wait until the application becomes Wayland native instead of XWayland.
|
Add option to copy screenshot to clipboard. Does it work properly on Wayland compositors? Maybe need to wait until the application becomes Wayland native instead of XWayland.
|
||||||
|
|
||||||
Show message that replay/streaming has to be restarted if recording settings are changed while replay/streaming is ongoing.
|
Show message that replay/streaming has to be restarted if recording settings are changed while replay/streaming is ongoing.
|
||||||
|
|
||||||
|
Support vector graphics. Maybe support svg, rendering it to a texture for better performance.
|
||||||
|
|
||||||
|
Support freetype for text rendering. Maybe load freetype as runtime (with dlopen) and use that when available and fallback to stb_freetype if not available.
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 2.0 KiB |
BIN
images/settings_extra_small.png
Normal file
BIN
images/settings_extra_small.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 959 B |
@@ -28,6 +28,7 @@ namespace gsr {
|
|||||||
mgl::Texture combobox_arrow_texture;
|
mgl::Texture combobox_arrow_texture;
|
||||||
mgl::Texture settings_texture;
|
mgl::Texture settings_texture;
|
||||||
mgl::Texture settings_small_texture;
|
mgl::Texture settings_small_texture;
|
||||||
|
mgl::Texture settings_extra_small_texture;
|
||||||
mgl::Texture folder_texture;
|
mgl::Texture folder_texture;
|
||||||
mgl::Texture up_arrow_texture;
|
mgl::Texture up_arrow_texture;
|
||||||
mgl::Texture replay_button_texture;
|
mgl::Texture replay_button_texture;
|
||||||
|
|||||||
@@ -1090,7 +1090,7 @@ namespace gsr {
|
|||||||
button->set_item_icon("save", &get_theme().save_texture);
|
button->set_item_icon("save", &get_theme().save_texture);
|
||||||
button->set_item_icon("save_1_min", &get_theme().save_texture);
|
button->set_item_icon("save_1_min", &get_theme().save_texture);
|
||||||
button->set_item_icon("save_10_min", &get_theme().save_texture);
|
button->set_item_icon("save_10_min", &get_theme().save_texture);
|
||||||
button->set_item_icon("settings", &get_theme().settings_small_texture);
|
button->set_item_icon("settings", &get_theme().settings_extra_small_texture);
|
||||||
button->on_click = [this](const std::string &id) {
|
button->on_click = [this](const std::string &id) {
|
||||||
if(id == "settings") {
|
if(id == "settings") {
|
||||||
auto replay_settings_page = std::make_unique<SettingsPage>(SettingsPage::Type::REPLAY, &gsr_info, config, &page_stack);
|
auto replay_settings_page = std::make_unique<SettingsPage>(SettingsPage::Type::REPLAY, &gsr_info, config, &page_stack);
|
||||||
@@ -1124,7 +1124,7 @@ namespace gsr {
|
|||||||
button->add_item("Settings", "settings");
|
button->add_item("Settings", "settings");
|
||||||
button->set_item_icon("start", &get_theme().play_texture);
|
button->set_item_icon("start", &get_theme().play_texture);
|
||||||
button->set_item_icon("pause", &get_theme().pause_texture);
|
button->set_item_icon("pause", &get_theme().pause_texture);
|
||||||
button->set_item_icon("settings", &get_theme().settings_small_texture);
|
button->set_item_icon("settings", &get_theme().settings_extra_small_texture);
|
||||||
button->on_click = [this](const std::string &id) {
|
button->on_click = [this](const std::string &id) {
|
||||||
if(id == "settings") {
|
if(id == "settings") {
|
||||||
auto record_settings_page = std::make_unique<SettingsPage>(SettingsPage::Type::RECORD, &gsr_info, config, &page_stack);
|
auto record_settings_page = std::make_unique<SettingsPage>(SettingsPage::Type::RECORD, &gsr_info, config, &page_stack);
|
||||||
@@ -1149,7 +1149,7 @@ namespace gsr {
|
|||||||
button->add_item("Start", "start", config.streaming_config.start_stop_hotkey.to_string(false, false));
|
button->add_item("Start", "start", config.streaming_config.start_stop_hotkey.to_string(false, false));
|
||||||
button->add_item("Settings", "settings");
|
button->add_item("Settings", "settings");
|
||||||
button->set_item_icon("start", &get_theme().play_texture);
|
button->set_item_icon("start", &get_theme().play_texture);
|
||||||
button->set_item_icon("settings", &get_theme().settings_small_texture);
|
button->set_item_icon("settings", &get_theme().settings_extra_small_texture);
|
||||||
button->on_click = [this](const std::string &id) {
|
button->on_click = [this](const std::string &id) {
|
||||||
if(id == "settings") {
|
if(id == "settings") {
|
||||||
auto stream_settings_page = std::make_unique<SettingsPage>(SettingsPage::Type::STREAM, &gsr_info, config, &page_stack);
|
auto stream_settings_page = std::make_unique<SettingsPage>(SettingsPage::Type::STREAM, &gsr_info, config, &page_stack);
|
||||||
|
|||||||
@@ -69,7 +69,10 @@ namespace gsr {
|
|||||||
if(!theme->settings_texture.load_from_file((resources_path + "images/settings.png").c_str()))
|
if(!theme->settings_texture.load_from_file((resources_path + "images/settings.png").c_str()))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if(!theme->settings_small_texture.load_from_file((resources_path + "images/settings_small.png").c_str()))
|
if(!theme->settings_small_texture.load_from_file((resources_path + "images/settings_small.png").c_str(), mgl::Texture::LoadOptions{false, false, MGL_TEXTURE_SCALE_LINEAR_MIPMAP}))
|
||||||
|
goto error;
|
||||||
|
|
||||||
|
if(!theme->settings_extra_small_texture.load_from_file((resources_path + "images/settings_extra_small.png").c_str(), mgl::Texture::LoadOptions{false, false, MGL_TEXTURE_SCALE_LINEAR_MIPMAP}))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if(!theme->folder_texture.load_from_file((resources_path + "images/folder.png").c_str()))
|
if(!theme->folder_texture.load_from_file((resources_path + "images/folder.png").c_str()))
|
||||||
|
|||||||
Reference in New Issue
Block a user