@@ -544,6 +544,8 @@ async fn main() {
544544 let mut chats: String = "" . to_string ( ) ;
545545 let mut chat_timer: Timer = Timer :: new ( 5.0 ) ;
546546 let ( sender, receiver) = crossbeam:: channel:: bounded :: < String > ( 1 ) ;
547+ let old_theme: bool = false ;
548+ let menu_text_color: Color = if old_theme { WHITE } else { RED } ;
547549
548550 let mut cc_1001: Color = Color :: new ( 0.0 , 0.0 , 0.2 , 1.0 ) ;
549551 let mut cc_1002: Color = Color :: new ( 0.0 , 0.0 , 0.3 , 1.0 ) ;
@@ -1604,7 +1606,11 @@ async fn main() {
16041606 & default_bg_no_gradient,
16051607 -50.0 ,
16061608 -75.0 ,
1607- Color :: from_rgba ( 20 , 20 , 20 , 255 ) ,
1609+ if old_theme {
1610+ Color :: from_rgba ( 50 , 50 , 50 , 255 )
1611+ } else {
1612+ Color :: from_rgba ( 20 , 20 , 20 , 255 )
1613+ } ,
16081614 DrawTextureParams {
16091615 dest_size : Some ( Vec2 {
16101616 x : default_bg_no_gradient. width ( ) * screen_width ( ) as f32 * 0.0008 ,
@@ -1625,25 +1631,27 @@ async fn main() {
16251631 screen_width ( ) as f32 / 2.0 - measure_text_ex ( "Geometry Rays" , 40 , & font) / 2.0 ,
16261632 100.0 + screen_height ( ) as f32 / 7.0 ,
16271633 40 ,
1628- RED ,
1634+ menu_text_color ,
16291635 & font
16301636 ) ;
16311637
1632- draw_text_pro (
1633- "Fyre" ,
1634- screen_width ( ) as f32 / 2.0 - measure_text_ex ( "Fyre" , 20 , & font) / 2.0 ,
1635- 150.0 + screen_height ( ) as f32 / 7.0 ,
1636- 20 ,
1637- ORANGE ,
1638- & font
1639- ) ;
1638+ if !old_theme {
1639+ draw_text_pro (
1640+ "Fyre" ,
1641+ screen_width ( ) as f32 / 2.0 - measure_text_ex ( "Fyre" , 20 , & font) / 2.0 ,
1642+ 150.0 + screen_height ( ) as f32 / 7.0 ,
1643+ 20 ,
1644+ ORANGE ,
1645+ & font
1646+ ) ;
1647+ }
16401648
16411649 draw_text_pro (
16421650 & format ! ( "Version: {}" , version) ,
16431651 20.0 ,
16441652 40.0 ,
16451653 15 ,
1646- RED ,
1654+ menu_text_color ,
16471655 & font
16481656 ) ;
16491657
@@ -1652,7 +1660,7 @@ async fn main() {
16521660 20.0 ,
16531661 70.0 ,
16541662 15 ,
1655- RED ,
1663+ menu_text_color ,
16561664 & font
16571665 ) ;
16581666
@@ -1661,7 +1669,7 @@ async fn main() {
16611669 20.0 ,
16621670 100.0 ,
16631671 15 ,
1664- RED ,
1672+ menu_text_color ,
16651673 & font
16661674 ) ;
16671675
@@ -1688,7 +1696,7 @@ async fn main() {
16881696 10.0 ,
16891697 screen_height ( ) - 35.0 ,
16901698 15 ,
1691- RED ,
1699+ menu_text_color ,
16921700 & font
16931701 ) ;
16941702
@@ -1697,7 +1705,7 @@ async fn main() {
16971705 10.0 ,
16981706 screen_height ( ) - 10.0 ,
16991707 15 ,
1700- RED ,
1708+ menu_text_color ,
17011709 & font
17021710 ) ;
17031711
@@ -1710,7 +1718,7 @@ async fn main() {
17101718 ) / 2.0 ,
17111719 100.0 ,
17121720 25 ,
1713- RED ,
1721+ menu_text_color ,
17141722 & font
17151723 ) ;
17161724
@@ -1719,7 +1727,7 @@ async fn main() {
17191727 200.0 ,
17201728 350.0 ,
17211729 40 ,
1722- RED ,
1730+ menu_text_color ,
17231731 & font
17241732 ) ;
17251733
@@ -2102,7 +2110,7 @@ async fn main() {
21022110 screen_width ( ) / 2.0 - measure_text_ex ( "Level Complete!" , 40 , & font) / 2.0 ,
21032111 200.0 ,
21042112 40 ,
2105- RED ,
2113+ menu_text_color ,
21062114 & font
21072115 ) ;
21082116
@@ -2160,7 +2168,7 @@ async fn main() {
21602168 screen_width ( ) / 2.0 - measure_text_ex ( & level_download_response, 30 , & font) / 2.0 ,
21612169 screen_height ( ) / 2.0 ,
21622170 30 ,
2163- RED ,
2171+ WHITE ,
21642172 & font
21652173 ) ;
21662174 }
@@ -2269,7 +2277,7 @@ async fn main() {
22692277 screen_width ( ) / 2.0 - measure_text_ex ( & login_response, 20 , & font) / 2.0 ,
22702278 200.0 ,
22712279 20 ,
2272- RED ,
2280+ menu_text_color ,
22732281 & font
22742282 ) ;
22752283
@@ -2285,7 +2293,7 @@ async fn main() {
22852293 screen_width ( ) / 2.0 - measure_text_ex ( & level_upload_response, 20 , & font) / 2.0 ,
22862294 100.0 ,
22872295 20 ,
2288- RED ,
2296+ menu_text_color ,
22892297 & font
22902298 ) ;
22912299
@@ -2321,7 +2329,7 @@ async fn main() {
23212329 screen_width ( ) / 2.0 - measure_text_ex ( "Use WASD to move objects one gridspace!" , 20 , & font) / 2.0 ,
23222330 200.0 ,
23232331 20 ,
2324- RED ,
2332+ menu_text_color ,
23252333 & font
23262334 ) ;
23272335
@@ -2330,7 +2338,7 @@ async fn main() {
23302338 screen_width ( ) / 2.0 - measure_text_ex ( "Use Shift + WASD to move objects off grid!" , 20 , & font) / 2.0 ,
23312339 250.0 ,
23322340 20 ,
2333- RED ,
2341+ menu_text_color ,
23342342 & font
23352343 ) ;
23362344
@@ -2339,7 +2347,7 @@ async fn main() {
23392347 screen_width ( ) / 2.0 - measure_text_ex ( "Use Q and E to rotate objects 90 degrees" , 20 , & font) / 2.0 ,
23402348 300.0 ,
23412349 20 ,
2342- RED ,
2350+ menu_text_color ,
23432351 & font
23442352 ) ;
23452353
@@ -2348,7 +2356,7 @@ async fn main() {
23482356 screen_width ( ) / 2.0 - measure_text_ex ( "Use Ctrl + D to duplicate objects" , 20 , & font) / 2.0 ,
23492357 350.0 ,
23502358 20 ,
2351- RED ,
2359+ menu_text_color ,
23522360 & font
23532361 ) ;
23542362
@@ -2357,7 +2365,7 @@ async fn main() {
23572365 screen_width ( ) / 2.0 - measure_text_ex ( "Use Alt + D to deselect all objects" , 20 , & font) / 2.0 ,
23582366 400.0 ,
23592367 20 ,
2360- RED ,
2368+ menu_text_color ,
23612369 & font
23622370 ) ;
23632371 }
@@ -2375,7 +2383,7 @@ async fn main() {
23752383 screen_width ( ) / 2.0 - measure_text_ex ( line, font_size, & font) / 2.0 ,
23762384 y,
23772385 font_size,
2378- WHITE ,
2386+ menu_text_color ,
23792387 & font
23802388 ) ;
23812389 y += font_size as f32 + 20.0 ;
0 commit comments