You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Document, cleanup and fix some theme properties
This commit is contained in:
@@ -468,22 +468,6 @@ double ScrollBar::get_area_size() const {
|
||||
}
|
||||
}
|
||||
|
||||
double ScrollBar::get_area_offset() const {
|
||||
double ofs = 0.0;
|
||||
|
||||
if (orientation == VERTICAL) {
|
||||
ofs += theme_cache.scroll_offset_style->get_margin(SIDE_TOP);
|
||||
ofs += theme_cache.decrement_icon->get_height();
|
||||
}
|
||||
|
||||
if (orientation == HORIZONTAL) {
|
||||
ofs += theme_cache.scroll_offset_style->get_margin(SIDE_LEFT);
|
||||
ofs += theme_cache.decrement_icon->get_width();
|
||||
}
|
||||
|
||||
return ofs;
|
||||
}
|
||||
|
||||
double ScrollBar::get_grabber_offset() const {
|
||||
return (get_area_size()) * get_as_ratio();
|
||||
}
|
||||
@@ -639,7 +623,6 @@ void ScrollBar::_bind_methods() {
|
||||
|
||||
BIND_THEME_ITEM_CUSTOM(Theme::DATA_TYPE_STYLEBOX, ScrollBar, scroll_style, "scroll");
|
||||
BIND_THEME_ITEM_CUSTOM(Theme::DATA_TYPE_STYLEBOX, ScrollBar, scroll_focus_style, "scroll_focus");
|
||||
BIND_THEME_ITEM_CUSTOM(Theme::DATA_TYPE_STYLEBOX, ScrollBar, scroll_offset_style, "hscroll");
|
||||
BIND_THEME_ITEM_CUSTOM(Theme::DATA_TYPE_STYLEBOX, ScrollBar, grabber_style, "grabber");
|
||||
BIND_THEME_ITEM_CUSTOM(Theme::DATA_TYPE_STYLEBOX, ScrollBar, grabber_hl_style, "grabber_highlight");
|
||||
BIND_THEME_ITEM_CUSTOM(Theme::DATA_TYPE_STYLEBOX, ScrollBar, grabber_pressed_style, "grabber_pressed");
|
||||
|
||||
Reference in New Issue
Block a user