preferences: Replace orb slider icons to reduce IPF abuse in the C++
By taking images/misc/orb@2x.png and editing it (in non-trivial ways, sadly), we get images that are more suitable for the UI than what we had up to this point, without the result looking upscaled and ugly, and without requiring a hardcoded IPF full of magic numbers. I drew the frame for the pressed variation myself using the pressed slider block thingy from images/buttons/sliders/slider-pressed.png.
This commit is contained in:
parent
8354e6fd1e
commit
504cf88e7e
3 changed files with 1 additions and 1 deletions
Binary file not shown.
Before Width: | Height: | Size: 427 B After Width: | Height: | Size: 915 B |
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 769 B |
|
@ -323,7 +323,7 @@ preferences_dialog::preferences_dialog(display& disp, const config& game_cfg)
|
|||
color_ids_.push_back(color_id);
|
||||
|
||||
std::string image_path = "misc/orb"; //game_config::images::orb;
|
||||
std::string image_path_suffix = "~RC(magenta>" + color_id + ")~CROP(14,0,14,14)~SCALE(28,28)";
|
||||
std::string image_path_suffix = "~RC(magenta>" + color_id + ")";
|
||||
|
||||
gui::button color_radio_button(disp.video(), "", gui::button::TYPE_IMAGE, image_path, gui::button::MINIMUM_SPACE);
|
||||
color_radio_button.set_tooltip_string(color_name);
|
||||
|
|
Loading…
Add table
Reference in a new issue