mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Popups are now windows also (broken!)
This commit is contained in:
@@ -34,9 +34,9 @@ Size2 Separator::get_minimum_size() const {
|
||||
|
||||
Size2 ms(3, 3);
|
||||
if (orientation == VERTICAL) {
|
||||
ms.x = get_constant("separation");
|
||||
ms.x = get_theme_constant("separation");
|
||||
} else { // HORIZONTAL
|
||||
ms.y = get_constant("separation");
|
||||
ms.y = get_theme_constant("separation");
|
||||
}
|
||||
return ms;
|
||||
}
|
||||
@@ -48,7 +48,7 @@ void Separator::_notification(int p_what) {
|
||||
case NOTIFICATION_DRAW: {
|
||||
|
||||
Size2i size = get_size();
|
||||
Ref<StyleBox> style = get_stylebox("separator");
|
||||
Ref<StyleBox> style = get_theme_stylebox("separator");
|
||||
Size2i ssize = style->get_minimum_size() + style->get_center_size();
|
||||
|
||||
if (orientation == VERTICAL) {
|
||||
|
||||
Reference in New Issue
Block a user