@@ -939,6 +939,33 @@ Ref<Theme> create_editor_theme(const Ref<Theme> p_theme) {
939
939
editor_log_button_pressed->set_border_color (accent_color);
940
940
theme->set_stylebox (" pressed" , " EditorLogFilterButton" , editor_log_button_pressed);
941
941
942
+ // ProjectTag
943
+ {
944
+ theme->set_type_variation (" ProjectTag" , " Button" );
945
+
946
+ Ref<StyleBoxFlat> tag = style_widget->duplicate ();
947
+ tag->set_bg_color (dark_theme ? tag->get_bg_color ().lightened (0.2 ) : tag->get_bg_color ().darkened (0.2 ));
948
+ tag->set_corner_radius (CORNER_TOP_LEFT, 0 );
949
+ tag->set_corner_radius (CORNER_BOTTOM_LEFT, 0 );
950
+ tag->set_corner_radius (CORNER_TOP_RIGHT, 4 );
951
+ tag->set_corner_radius (CORNER_BOTTOM_RIGHT, 4 );
952
+ theme->set_stylebox (" normal" , " ProjectTag" , tag);
953
+
954
+ tag = style_widget_hover->duplicate ();
955
+ tag->set_corner_radius (CORNER_TOP_LEFT, 0 );
956
+ tag->set_corner_radius (CORNER_BOTTOM_LEFT, 0 );
957
+ tag->set_corner_radius (CORNER_TOP_RIGHT, 4 );
958
+ tag->set_corner_radius (CORNER_BOTTOM_RIGHT, 4 );
959
+ theme->set_stylebox (" hover" , " ProjectTag" , tag);
960
+
961
+ tag = style_widget_pressed->duplicate ();
962
+ tag->set_corner_radius (CORNER_TOP_LEFT, 0 );
963
+ tag->set_corner_radius (CORNER_BOTTOM_LEFT, 0 );
964
+ tag->set_corner_radius (CORNER_TOP_RIGHT, 4 );
965
+ tag->set_corner_radius (CORNER_BOTTOM_RIGHT, 4 );
966
+ theme->set_stylebox (" pressed" , " ProjectTag" , tag);
967
+ }
968
+
942
969
// MenuBar
943
970
theme->set_stylebox (" normal" , " MenuBar" , style_widget);
944
971
theme->set_stylebox (" hover" , " MenuBar" , style_widget_hover);
0 commit comments