@@ -14,27 +14,39 @@ class AppOption {
1414
1515 tabSpaceRect.draw (tabSpaceColor);
1616
17- MyGUI::RadioButtonAreas (colorTypeIndex, Array{ Vec2 (260 , 150 ),Vec2 (370 ,150 ) }, Array{ Vec2 (60 , 50 ) });
18- MyGUI::Text (U" plt color as " , Vec2 (120 , 150 ));
19- MyGUI::Text (U" RGB" , Vec2 (280 , 150 ));
20- MyGUI::Text (U" HSV" , Vec2 (390 , 150 ));
17+ Vec2 dpos{100 ,150 };
2118
22- MyGUI::CheckBoxArea (shortword, Vec2 (100 , 205 ), Size (170 , 50 ));
23- MyGUI::Text (U" short keywords" , Vec2 (120 , 205 ));
19+ RectF{ Arg::leftCenter= dpos, Size (600 ,60 ) }.draw (UIColor::ratio (0.1 )).drawFrame (3 ,UIColor::ratio (0.9 ));
20+ MyGUI::Text (U" Lisence" , dpos+Vec2 (20 , 0 ));
21+ if (MyGUI::Button (U" View in Browser" , dpos + Vec2 (150 , 0 ),Size (170 ,40 ))) {
22+ System::LaunchBrowser (U" ./Licenses.html" );
23+ }
24+
25+ dpos += Vec2 (0 ,100 );
26+ MyGUI::RadioButtonAreas (colorTypeIndex, Array{ dpos+Vec2 (160 , 0 ),dpos+Vec2 (270 ,0 ) }, Array{ Vec2 (60 , 50 ) });
27+ MyGUI::Text (U" plt color as " , dpos+Vec2 (20 , 0 ));
28+ MyGUI::Text (U" RGB" , dpos+Vec2 (180 , 0 ));
29+ MyGUI::Text (U" HSV" , dpos+Vec2 (290 , 0 ));
30+
31+ dpos += Vec2 (0 , 55 );
32+ MyGUI::CheckBoxArea (shortword, dpos, Size (170 , 50 ));
33+ MyGUI::Text (U" short keywords" , dpos+Vec2 (20 , 0 ));
2434
35+ dpos += Vec2 (0 , 45 );
2536 HSV base_{ UIColor::Base };
2637 HSV main_{ UIColor::Main };
2738 HSV accent_{ UIColor::Accent };
28- FontAsset (U" main" )(U" Base" ).drawAt (Vec2 (200 , 260 ), UIColor::ratio (0.9 ));
29- FontAsset (U" main" )(U" Main" ).drawAt (Vec2 (380 , 260 ), UIColor::ratio (0.9 ));
30- FontAsset (U" main" )(U" Accent" ).drawAt (Vec2 (560 , 260 ), UIColor::ratio (0.9 ));
31- if (SimpleGUI::ColorPickerAt (base_, Vec2 (200 , 330 ))) {
39+ FontAsset (U" main" )(U" Base" ).drawAt (dpos+Vec2 (100 , 0 ), UIColor::ratio (0.9 ));
40+ FontAsset (U" main" )(U" Main" ).drawAt (dpos+Vec2 (280 , 0 ), UIColor::ratio (0.9 ));
41+ FontAsset (U" main" )(U" Accent" ).drawAt (dpos+Vec2 (460 , 0 ), UIColor::ratio (0.9 ));
42+ dpos += Vec2 (0 , 70 );
43+ if (SimpleGUI::ColorPickerAt (base_, dpos+Vec2 (100 , 0 ))) {
3244 UIColor::Base = base_.toColor ();
3345 }
34- if (SimpleGUI::ColorPickerAt (main_, Vec2 (380 , 330 ))) {
46+ if (SimpleGUI::ColorPickerAt (main_, dpos+ Vec2 (280 , 0 ))) {
3547 UIColor::Main = main_.toColor ();
3648 }
37- if (SimpleGUI::ColorPickerAt (accent_, Vec2 (560 , 330 ))) {
49+ if (SimpleGUI::ColorPickerAt (accent_, dpos+ Vec2 (460 , 0 ))) {
3850 UIColor::Accent = accent_.toColor ();
3951 UpdateWaveImage ();
4052 }
0 commit comments