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

@@ -187,18 +187,18 @@ BlackWhite::BlackWhite (): FoldableToolPanel(this, "blackwhite", M("TP_BWMIX_LAB
//----------- RGB / ROYGCBPM Mixer ------------------------------
imgIcon[0] = Gtk::manage (new RTImage ("circle-red-small.png"));
imgIcon[1] = Gtk::manage (new RTImage ("circle-orange-small.png"));
imgIcon[2] = Gtk::manage (new RTImage ("circle-yellow-small.png"));
imgIcon[3] = Gtk::manage (new RTImage ("circle-green-small.png"));
imgIcon[4] = Gtk::manage (new RTImage ("circle-cyan-small.png"));
imgIcon[5] = Gtk::manage (new RTImage ("circle-blue-small.png"));
imgIcon[6] = Gtk::manage (new RTImage ("circle-purple-small.png"));
imgIcon[7] = Gtk::manage (new RTImage ("circle-magenta-small.png"));
imgIcon[0] = Gtk::manage (new RTImage ("circle-red-small"));
imgIcon[1] = Gtk::manage (new RTImage ("circle-orange-small"));
imgIcon[2] = Gtk::manage (new RTImage ("circle-yellow-small"));
imgIcon[3] = Gtk::manage (new RTImage ("circle-green-small"));
imgIcon[4] = Gtk::manage (new RTImage ("circle-cyan-small"));
imgIcon[5] = Gtk::manage (new RTImage ("circle-blue-small"));
imgIcon[6] = Gtk::manage (new RTImage ("circle-purple-small"));
imgIcon[7] = Gtk::manage (new RTImage ("circle-magenta-small"));
imgIcon[8] = Gtk::manage (new RTImage ("circle-empty-red-small.png"));
imgIcon[9] = Gtk::manage (new RTImage ("circle-empty-green-small.png"));
imgIcon[10] = Gtk::manage (new RTImage ("circle-empty-blue-small.png"));
imgIcon[8] = Gtk::manage (new RTImage ("circle-empty-red-small"));
imgIcon[9] = Gtk::manage (new RTImage ("circle-empty-green-small"));
imgIcon[10] = Gtk::manage (new RTImage ("circle-empty-blue-small"));
mixerVBox->pack_start (*Gtk::manage (new Gtk::Separator(Gtk::ORIENTATION_HORIZONTAL)));