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:
@@ -32,7 +32,7 @@ Distortion::Distortion (): FoldableToolPanel(this, "distortion", M("TP_DISTORTIO
|
||||
|
||||
rlistener = nullptr;
|
||||
autoDistor = Gtk::manage (new Gtk::Button (M("GENERAL_AUTO")));
|
||||
autoDistor->set_image (*Gtk::manage (new RTImage ("distortion-auto-small.png")));
|
||||
autoDistor->set_image (*Gtk::manage (new RTImage ("distortion-auto-small", Gtk::ICON_SIZE_BUTTON)));
|
||||
autoDistor->get_style_context()->add_class("independent");
|
||||
autoDistor->set_alignment(0.5f, 0.5f);
|
||||
autoDistor->set_tooltip_text (M("TP_DISTORTION_AUTO_TIP"));
|
||||
@@ -40,14 +40,14 @@ Distortion::Distortion (): FoldableToolPanel(this, "distortion", M("TP_DISTORTIO
|
||||
autoDistor->show();
|
||||
pack_start (*autoDistor);
|
||||
|
||||
Gtk::Image* idistL = Gtk::manage (new RTImage ("distortion-pincushion-small.png"));
|
||||
Gtk::Image* idistR = Gtk::manage (new RTImage ("distortion-barrel-small.png"));
|
||||
Gtk::Image* idistL = Gtk::manage (new RTImage ("distortion-pincushion-small"));
|
||||
Gtk::Image* idistR = Gtk::manage (new RTImage ("distortion-barrel-small"));
|
||||
|
||||
distor = Gtk::manage (new Adjuster (M("TP_DISTORTION_AMOUNT"), -0.5, 0.5, 0.001, 0, idistL, idistR));
|
||||
distor->setAdjusterListener (this);
|
||||
|
||||
distor->setLogScale(2, 0);
|
||||
|
||||
|
||||
distor->show();
|
||||
pack_start (*distor);
|
||||
}
|
||||
|
Reference in New Issue
Block a user