Base: Create /res/graphics/ and relocate system art assets
Author: https://github.com/thankyouverycool Commit: https://github.com/SerenityOS/serenity/commit/61ba39dfa07 Pull-request: https://github.com/SerenityOS/serenity/pull/3317
|
@ -75,7 +75,7 @@ DownloadWidget::DownloadWidget(const URL& url)
|
|||
auto& animation_layout = animation_container.set_layout<GUI::HorizontalBoxLayout>();
|
||||
|
||||
auto& browser_image = animation_container.add<GUI::ImageWidget>();
|
||||
browser_image.load_from_file("/res/download-animation.gif");
|
||||
browser_image.load_from_file("/res/graphics/download-animation.gif");
|
||||
animation_layout.add_spacer();
|
||||
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
MonitorWidget::MonitorWidget()
|
||||
{
|
||||
m_monitor_bitmap = Gfx::Bitmap::load_from_file("/res/monitor.png");
|
||||
m_monitor_bitmap = Gfx::Bitmap::load_from_file("/res/graphics/monitor.png");
|
||||
m_monitor_rect = { 8, 9, 320, 180 };
|
||||
}
|
||||
|
||||
|
|
Before Width: | Height: | Size: 49 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
@ -23,6 +23,6 @@
|
|||
</head>
|
||||
<body>
|
||||
<canvas width=400 height=400></canvas>
|
||||
<img src="../../../res/icons/buggie.png">
|
||||
<img src="../../../res/graphics/buggie.png">
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -143,7 +143,7 @@ void Canvas::draw()
|
|||
path.close();
|
||||
painter.fill_path(path, Color::Yellow, Gfx::Painter::WindingRule::EvenOdd);
|
||||
|
||||
auto buggie = Gfx::Bitmap::load_from_file("/res/icons/buggie.png");
|
||||
auto buggie = Gfx::Bitmap::load_from_file("/res/graphics/buggie.png");
|
||||
painter.blit({ 280, 280 }, *buggie, buggie->rect(), 0.5);
|
||||
painter.blit_scaled({ 360, 280, buggie->rect().width() * 2, buggie->rect().height() * 2 }, *buggie, buggie->rect(), 0.5, 0.5);
|
||||
|
||||
|
|
|
@ -496,10 +496,10 @@ int main(int argc, char** argv)
|
|||
|
||||
auto& banner_image = tab_image.add<GUI::ImageWidget>();
|
||||
banner_image.set_frame_thickness(2);
|
||||
banner_image.load_from_file("/res/brand-banner.png");
|
||||
banner_image.load_from_file("/res/graphics/brand-banner.png");
|
||||
|
||||
auto& gif_animation_image = tab_image.add<GUI::ImageWidget>();
|
||||
gif_animation_image.load_from_file("/res/download-animation.gif");
|
||||
gif_animation_image.load_from_file("/res/graphics/download-animation.gif");
|
||||
|
||||
auto& tab_cursors = tab_widget.add_tab<GUI::Widget>("Cursors");
|
||||
tab_cursors.set_size_policy(GUI::SizePolicy::Fill, GUI::SizePolicy::Fill);
|
||||
|
|
|
@ -54,7 +54,7 @@ AboutDialog::AboutDialog(const StringView& name, const Gfx::Bitmap* icon, Window
|
|||
widget.layout()->set_spacing(0);
|
||||
|
||||
auto& banner_image = widget.add<GUI::ImageWidget>();
|
||||
banner_image.load_from_file("/res/brand-banner.png");
|
||||
banner_image.load_from_file("/res/graphics/brand-banner.png");
|
||||
|
||||
auto& content_container = widget.add<Widget>();
|
||||
content_container.set_size_policy(SizePolicy::Fill, SizePolicy::Fill);
|
||||
|
|