Initial commit for real hidpi support

Note: This commit has only been tested on MacOS

Changes:
- Icons now use the native hidpi support from Gtk (through Icon Theme)
- Icons are now directly generated from scalable file (i.e. SVG file)
- Widget sizes are scaled based on DPI and scale factor
- Font size is scaled based on DPI and scale factor
This commit is contained in:
Pandagrapher
2022-08-19 16:47:28 +02:00
parent 1e2dc30738
commit 89d2bdce5b
108 changed files with 1949 additions and 2032 deletions

View File

@@ -20,6 +20,7 @@
#include <gtkmm.h>
class ImageArea;
class RTImage;
class PreviewModePanel :
public Gtk::Box
@@ -36,14 +37,22 @@ protected:
Gtk::ToggleButton* backColor3;
ImageArea* imageArea;
Gtk::Image* iR, *igR;
Gtk::Image* iG, *igG;
Gtk::Image* iB, *igB;
Gtk::Image* iL, *igL;
Gtk::Image* iBC0, *igBC0;
Gtk::Image* iBC1, *igBC1;
Gtk::Image* iBC2, *igBC2;
Gtk::Image* iBC3, *igBC3;
const Glib::ustring nR, ngR;
const Glib::ustring nG, ngG;
const Glib::ustring nB, ngB;
const Glib::ustring nL, ngL;
const Glib::ustring nBC0, ngBC0;
const Glib::ustring nBC1, ngBC1;
const Glib::ustring nBC2, ngBC2;
const Glib::ustring nBC3, ngBC3;
RTImage* const iR;
RTImage* const iG;
RTImage* const iB;
RTImage* const iL;
RTImage* const iBC0;
RTImage* const iBC1;
RTImage* const iBC2;
RTImage* const iBC3;
public:
explicit PreviewModePanel (ImageArea* ia);