Add the base scale factor to the Theme resource
This commit is contained in:
parent
8aa78bc050
commit
4a42a66cd9
11 changed files with 305 additions and 10 deletions
|
|
@ -509,6 +509,14 @@ public:
|
|||
bool has_theme_color(const StringName &p_name, const StringName &p_theme_type = StringName()) const;
|
||||
bool has_theme_constant(const StringName &p_name, const StringName &p_theme_type = StringName()) const;
|
||||
|
||||
static float fetch_theme_default_base_scale(Control *p_theme_owner, Window *p_theme_owner_window);
|
||||
static Ref<Font> fetch_theme_default_font(Control *p_theme_owner, Window *p_theme_owner_window);
|
||||
static int fetch_theme_default_font_size(Control *p_theme_owner, Window *p_theme_owner_window);
|
||||
|
||||
float get_theme_default_base_scale() const;
|
||||
Ref<Font> get_theme_default_font() const;
|
||||
int get_theme_default_font_size() const;
|
||||
|
||||
/* TOOLTIP */
|
||||
|
||||
void set_tooltip(const String &p_tooltip);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue