mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Base: Add icons for the Gradient screensaver
Add 32px and 16px application icons for the Gradient screensaver
This commit is contained in:
parent
c6af248909
commit
c3a5618dab
Notes:
sideshowbarker
2024-07-17 23:02:37 +09:00
Author: https://github.com/cubiclove Commit: https://github.com/SerenityOS/serenity/commit/c3a5618dab Pull-request: https://github.com/SerenityOS/serenity/pull/18329 Reviewed-by: https://github.com/linusg
4 changed files with 2 additions and 2 deletions
BIN
Base/res/icons/16x16/app-gradient.png
Normal file
BIN
Base/res/icons/16x16/app-gradient.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 295 B |
BIN
Base/res/icons/32x32/app-gradient.png
Normal file
BIN
Base/res/icons/32x32/app-gradient.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 667 B |
|
@ -7,5 +7,5 @@ set(SOURCES
|
||||||
Gradient.cpp
|
Gradient.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
serenity_app(Gradient ICON app-screensaver)
|
serenity_app(Gradient ICON app-gradient)
|
||||||
target_link_libraries(Gradient PRIVATE LibDesktop LibGUI LibCore LibGfx LibMain)
|
target_link_libraries(Gradient PRIVATE LibDesktop LibGUI LibCore LibGfx LibMain)
|
||||||
|
|
|
@ -95,7 +95,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
TRY(Core::System::unveil("/res", "r"));
|
TRY(Core::System::unveil("/res", "r"));
|
||||||
TRY(Core::System::unveil(nullptr, nullptr));
|
TRY(Core::System::unveil(nullptr, nullptr));
|
||||||
|
|
||||||
auto window = TRY(Desktop::Screensaver::create_window("Gradient"sv, "app-screensaver"sv));
|
auto window = TRY(Desktop::Screensaver::create_window("Gradient"sv, "app-gradient"sv));
|
||||||
|
|
||||||
auto gradient_widget = TRY(window->set_main_widget<Gradient>(64, 48, 10000));
|
auto gradient_widget = TRY(window->set_main_widget<Gradient>(64, 48, 10000));
|
||||||
gradient_widget->set_fill_with_background_color(false);
|
gradient_widget->set_fill_with_background_color(false);
|
||||||
|
|
Loading…
Reference in a new issue