Base: Create /res/graphics/ and relocate system art assets

This commit is contained in:
thankyouverycool 2020-08-24 06:03:30 -04:00 committed by Andreas Kling
parent 4463fed398
commit 61ba39dfa0
Notes: sideshowbarker 2024-07-19 03:06:01 +09:00
10 changed files with 7 additions and 7 deletions

View file

@ -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();

View file

@ -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 };
}

View file

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 49 KiB

View file

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View file

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View file

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View file

@ -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>

View file

@ -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);

View file

@ -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);

View file

@ -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);