@@ -10,7 +10,7 @@ use bevy::feathers::controls::{ButtonProps, button};
1010use bevy:: feathers:: theme:: ThemeBackgroundColor ;
1111use bevy:: feathers:: tokens;
1212use bevy:: prelude:: * ;
13- use bevy:: reflect:: { ReflectRef , VariantType } ;
13+ use bevy:: reflect:: { ReflectRef , enums :: VariantType } ;
1414use bevy:: ui:: Val :: * ;
1515use bevy:: ui_widgets:: { Activate , ControlOrientation , CoreScrollbarThumb , Scrollbar , observe} ;
1616
@@ -226,7 +226,7 @@ fn spawn_empty_state_exclusive(
226226 p. spawn ( (
227227 Text :: new ( message) ,
228228 TextFont {
229- font_size : body_font_size,
229+ font_size : FontSize :: Px ( body_font_size) ,
230230 ..default ( )
231231 } ,
232232 TextColor ( muted_text_color) ,
@@ -248,7 +248,7 @@ fn spawn_error_message(world: &mut World, parent: Entity, config: &InspectorConf
248248 p. spawn ( (
249249 Text :: new ( message) ,
250250 TextFont {
251- font_size : body_font_size,
251+ font_size : FontSize :: Px ( body_font_size) ,
252252 ..default ( )
253253 } ,
254254 TextColor ( error_text_color) ,
@@ -603,7 +603,7 @@ fn spawn_components_tab_exclusive(
603603 * resolved_name, component_count, memory_display
604604 ) ) ,
605605 TextFont {
606- font_size : title_font_size,
606+ font_size : FontSize :: Px ( title_font_size) ,
607607 ..default ( )
608608 } ,
609609 TextColor ( Color :: WHITE ) ,
@@ -634,7 +634,7 @@ fn spawn_components_tab_exclusive(
634634 card. spawn ( (
635635 Text :: new ( format ! ( "{} | {}" , card_data. name, card_data. size) ) ,
636636 TextFont {
637- font_size : body_font_size,
637+ font_size : FontSize :: Px ( body_font_size) ,
638638 ..default ( )
639639 } ,
640640 TextColor ( Color :: srgba ( 0.9 , 0.9 , 0.9 , 1.0 ) ) ,
@@ -662,7 +662,7 @@ fn spawn_components_tab_exclusive(
662662 row. spawn ( (
663663 Text :: new ( format ! ( "{}:" , field. name) ) ,
664664 TextFont {
665- font_size : small_font_size,
665+ font_size : FontSize :: Px ( small_font_size) ,
666666 ..default ( )
667667 } ,
668668 TextColor ( field_name_color) ,
@@ -701,7 +701,7 @@ fn spawn_components_tab_exclusive(
701701 . with_child ( (
702702 Text :: new ( format ! ( "{:.2}" , editable. numeric_value) ) ,
703703 TextFont {
704- font_size : small_font_size,
704+ font_size : FontSize :: Px ( small_font_size) ,
705705 ..default ( )
706706 } ,
707707 TextColor ( Color :: srgba ( 0.9 , 0.9 , 0.6 , 1.0 ) ) , // Yellow for editable
@@ -711,7 +711,7 @@ fn spawn_components_tab_exclusive(
711711 row. spawn ( (
712712 Text :: new ( field. value . clone ( ) ) ,
713713 TextFont {
714- font_size : small_font_size,
714+ font_size : FontSize :: Px ( small_font_size) ,
715715 ..default ( )
716716 } ,
717717 TextColor ( muted_text_color) ,
@@ -725,7 +725,7 @@ fn spawn_components_tab_exclusive(
725725 card. spawn ( (
726726 Text :: new ( "<no reflected data>" ) ,
727727 TextFont {
728- font_size : small_font_size,
728+ font_size : FontSize :: Px ( small_font_size) ,
729729 ..default ( )
730730 } ,
731731 TextColor ( muted_text_color) ,
@@ -798,7 +798,7 @@ fn spawn_relationships_tab_exclusive(
798798 p. spawn ( (
799799 Text :: new ( "Parent" ) ,
800800 TextFont {
801- font_size : title_font_size,
801+ font_size : FontSize :: Px ( title_font_size) ,
802802 ..default ( )
803803 } ,
804804 TextColor ( Color :: WHITE ) ,
@@ -823,7 +823,7 @@ fn spawn_relationships_tab_exclusive(
823823 bevy:: prelude:: Spawn ( (
824824 Text :: new ( label) ,
825825 TextFont {
826- font_size : body_font_size,
826+ font_size : FontSize :: Px ( body_font_size) ,
827827 ..default ( )
828828 } ,
829829 TextColor ( Color :: srgba ( 0.9 , 0.9 , 0.9 , 1.0 ) ) ,
@@ -836,7 +836,7 @@ fn spawn_relationships_tab_exclusive(
836836 p. spawn ( (
837837 Text :: new ( "No parent (root entity)" ) ,
838838 TextFont {
839- font_size : body_font_size,
839+ font_size : FontSize :: Px ( body_font_size) ,
840840 ..default ( )
841841 } ,
842842 TextColor ( muted_text_color) ,
@@ -851,7 +851,7 @@ fn spawn_relationships_tab_exclusive(
851851 p. spawn ( (
852852 Text :: new ( format ! ( "Children ({})" , children_len) ) ,
853853 TextFont {
854- font_size : title_font_size,
854+ font_size : FontSize :: Px ( title_font_size) ,
855855 ..default ( )
856856 } ,
857857 TextColor ( Color :: WHITE ) ,
@@ -865,7 +865,7 @@ fn spawn_relationships_tab_exclusive(
865865 p. spawn ( (
866866 Text :: new ( "No children" ) ,
867867 TextFont {
868- font_size : body_font_size,
868+ font_size : FontSize :: Px ( body_font_size) ,
869869 ..default ( )
870870 } ,
871871 TextColor ( muted_text_color) ,
@@ -886,7 +886,7 @@ fn spawn_relationships_tab_exclusive(
886886 bevy:: prelude:: Spawn ( (
887887 Text :: new ( label) ,
888888 TextFont {
889- font_size : body_font_size,
889+ font_size : FontSize :: Px ( body_font_size) ,
890890 ..default ( )
891891 } ,
892892 TextColor ( Color :: srgba ( 0.9 , 0.9 , 0.9 , 1.0 ) ) ,
@@ -940,7 +940,7 @@ pub fn spawn_detail_panel(parent: &mut ChildSpawnerCommands<'_>, config: &Inspec
940940 bevy:: prelude:: Spawn ( (
941941 Text :: new ( "Components" ) ,
942942 TextFont {
943- font_size : config. body_font_size ,
943+ font_size : FontSize :: Px ( config. body_font_size ) ,
944944 ..default ( )
945945 } ,
946946 ) ) ,
@@ -956,7 +956,7 @@ pub fn spawn_detail_panel(parent: &mut ChildSpawnerCommands<'_>, config: &Inspec
956956 bevy:: prelude:: Spawn ( (
957957 Text :: new ( "Relationships" ) ,
958958 TextFont {
959- font_size : config. body_font_size ,
959+ font_size : FontSize :: Px ( config. body_font_size ) ,
960960 ..default ( )
961961 } ,
962962 ) ) ,
0 commit comments