@@ -8,8 +8,8 @@ use crate::ui::theme;
88use crate :: ui:: widgets:: button:: { Button , ButtonStyle } ;
99use crate :: ui:: widgets:: dropdown:: Dropdown ;
1010use crate :: ui:: widgets:: icon:: {
11- Icon , ICON_ADD , ICON_BALANCE , ICON_CODE , ICON_DIAL , ICON_GAMEPAD , ICON_KEYBOARD , ICON_MONITOR ,
12- ICON_SPEED ,
11+ ICON_ADD , ICON_BALANCE , ICON_CODE , ICON_DIAL , ICON_GAMEPAD , ICON_KEYBOARD , ICON_MONITOR ,
12+ ICON_SPEED , Icon ,
1313} ;
1414use crate :: ui:: widgets:: segmented:: SegmentedControl ;
1515use crate :: ui:: widgets:: slider:: Slider ;
@@ -413,8 +413,7 @@ impl Widget for ProfilesPanel {
413413
414414 // PERFORMANCE SETTINGS (single-column controls)
415415 let mut y = y_start + 32.0 ; // room for section header
416- self . bitrate_slider
417- . layout ( Rect :: new ( x, y + 50.0 , w, 32.0 ) ) ;
416+ self . bitrate_slider . layout ( Rect :: new ( x, y + 50.0 , w, 32.0 ) ) ;
418417 y += 110.0 ;
419418 self . encoder_dropdown
420419 . layout ( Rect :: new ( x, y + 20.0 , w, 36.0 ) ) ;
@@ -646,8 +645,7 @@ impl Widget for ProfilesPanel {
646645 }
647646
648647 if self . dirty {
649- let badge_x =
650- name_x + tw + 16.0 + if draft. builtin { 74.0 } else { 0.0 } ;
648+ let badge_x = name_x + tw + 16.0 + if draft. builtin { 74.0 } else { 0.0 } ;
651649 let chip = Rect :: new ( badge_x, editor. y + 24.0 , 80.0 , 20.0 ) ;
652650 ctx. push_glass_quad ( theme:: launcher_status_chip ( chip, theme:: ChipTone :: Warning ) ) ;
653651 ctx. push_text_run ( TextRun {
@@ -678,9 +676,7 @@ impl Widget for ProfilesPanel {
678676
679677 // Section helper
680678 let paint_section_header = |ctx : & mut PaintContext , y : f32 , icon : char , title : & str | {
681- ctx. push_glass_quad ( theme:: launcher_inner_separator ( Rect :: new (
682- x, y, w, 1.0 ,
683- ) ) ) ;
679+ ctx. push_glass_quad ( theme:: launcher_inner_separator ( Rect :: new ( x, y, w, 1.0 ) ) ) ;
684680 Icon :: new ( icon)
685681 . with_size ( 16.0 )
686682 . with_color ( theme:: PRIMARY_BLUE )
@@ -706,8 +702,8 @@ impl Widget for ProfilesPanel {
706702 let bitrate_mbps = self . bitrate_slider . value ( ) . round ( ) as u32 ;
707703 let value_str = format ! ( "{}" , bitrate_mbps) ;
708704 ctx. push_text_run ( TextRun {
709- x : x ,
710- y : y ,
705+ x,
706+ y,
711707 text : "Bitrate Preference" . into ( ) ,
712708 font_size : theme:: FONT_CAPTION ,
713709 color : theme:: LT_TEXT_MUTED ,
@@ -717,7 +713,7 @@ impl Widget for ProfilesPanel {
717713 let val_w = theme:: text_width ( & value_str, theme:: FONT_DISPLAY ) ;
718714 ctx. push_text_run ( TextRun {
719715 x : x + w - val_w - 50.0 ,
720- y : y ,
716+ y,
721717 text : value_str,
722718 font_size : theme:: FONT_DISPLAY ,
723719 color : theme:: LT_TEXT_PRIMARY ,
@@ -756,8 +752,8 @@ impl Widget for ProfilesPanel {
756752
757753 y += 110.0 ;
758754 ctx. push_text_run ( TextRun {
759- x : x ,
760- y : y ,
755+ x,
756+ y,
761757 text : "Latency vs Quality" . into ( ) ,
762758 font_size : theme:: FONT_CAPTION ,
763759 color : theme:: LT_TEXT_MUTED ,
0 commit comments