mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Revert "Add new editor and default theme (WIP)"
This reverts commit f045efe007.
This commit is contained in:
@@ -56,24 +56,7 @@ void OptionButton::_notification(int p_what) {
|
||||
Size2 size = get_size();
|
||||
|
||||
Point2 ofs(size.width - arrow->get_width() - get_constant("arrow_margin"), int(Math::abs((size.height - arrow->get_height()) / 2)));
|
||||
|
||||
Color arrow_color = get_color("font_color");
|
||||
switch (get_draw_mode()) {
|
||||
case DRAW_NORMAL: {
|
||||
arrow_color = get_color("font_color");
|
||||
} break;
|
||||
case DRAW_PRESSED: {
|
||||
arrow_color = get_color("font_color_pressed");
|
||||
} break;
|
||||
case DRAW_HOVER: {
|
||||
arrow_color = get_color("font_color_hover");
|
||||
} break;
|
||||
case DRAW_DISABLED: {
|
||||
arrow_color = get_color("font_color_disabled");
|
||||
} break;
|
||||
}
|
||||
|
||||
arrow->draw(ci, ofs, arrow_color);
|
||||
arrow->draw(ci, ofs);
|
||||
|
||||
} break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user