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:
@@ -50,7 +50,7 @@ protected:
|
||||
class MethodColumns : public Gtk::TreeModel::ColumnRecord
|
||||
{
|
||||
public:
|
||||
Gtk::TreeModelColumn< Glib::RefPtr<Gdk::Pixbuf> > colIcon;
|
||||
Gtk::TreeModelColumn<Glib::ustring> colIcon;
|
||||
Gtk::TreeModelColumn<Glib::ustring> colLabel;
|
||||
Gtk::TreeModelColumn<int> colId;
|
||||
MethodColumns()
|
||||
@@ -61,7 +61,7 @@ protected:
|
||||
}
|
||||
};
|
||||
|
||||
static Glib::RefPtr<Gdk::Pixbuf> wbPixbufs[rtengine::toUnderlying(rtengine::procparams::WBEntry::Type::CUSTOM) + 1];
|
||||
Glib::ustring wbIcons[rtengine::toUnderlying(rtengine::procparams::WBEntry::Type::CUSTOM) + 1];
|
||||
Glib::RefPtr<Gtk::TreeStore> refTreeModel;
|
||||
MethodColumns methodColumns;
|
||||
MyComboBox* method;
|
||||
@@ -102,8 +102,6 @@ public:
|
||||
WhiteBalance ();
|
||||
~WhiteBalance () override;
|
||||
|
||||
static void init ();
|
||||
static void cleanup ();
|
||||
void read (const rtengine::procparams::ProcParams* pp, const ParamsEdited* pedited = nullptr) override;
|
||||
void write (rtengine::procparams::ProcParams* pp, ParamsEdited* pedited = nullptr) override;
|
||||
void setDefaults (const rtengine::procparams::ProcParams* defParams, const ParamsEdited* pedited = nullptr) override;
|
||||
|
Reference in New Issue
Block a user