فهرست منبع

Demos: Stop using Widget::foreground_color()

Andreas Kling 4 سال پیش
والد
کامیت
48647cc3ed
2فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 1
      Demos/Cube/Cube.cpp
  2. 0 1
      Demos/Fire/Fire.cpp

+ 0 - 1
Demos/Cube/Cube.cpp

@@ -203,7 +203,6 @@ int main(int argc, char** argv)
     auto& time = cube.add<GUI::Label>();
     auto& time = cube.add<GUI::Label>();
     time.set_relative_rect({ 0, 4, 40, 10 });
     time.set_relative_rect({ 0, 4, 40, 10 });
     time.move_by({ window->width() - time.width(), 0 });
     time.move_by({ window->width() - time.width(), 0 });
-    time.set_foreground_color(Color::from_rgb(0x222222));
     cube.set_stat_label(time);
     cube.set_stat_label(time);
 
 
     window->show();
     window->show();

+ 0 - 1
Demos/Fire/Fire.cpp

@@ -226,7 +226,6 @@ int main(int argc, char** argv)
     auto& time = fire.add<GUI::Label>();
     auto& time = fire.add<GUI::Label>();
     time.set_relative_rect({ 0, 4, 40, 10 });
     time.set_relative_rect({ 0, 4, 40, 10 });
     time.move_by({ window->width() - time.width(), 0 });
     time.move_by({ window->width() - time.width(), 0 });
-    time.set_foreground_color(Color::from_rgb(0x444444));
     fire.set_stat_label(time);
     fire.set_stat_label(time);
 
 
     window->show();
     window->show();