From c73f9e2632f9614bba748aed857e2a648126a963 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 20 Apr 2017 20:16:48 +0200 Subject: Change resource paths to be relative to the plugingui folder instead of the resources folder. Make rcgen run atomatically to re-generate resource_data.cc if one of the resource files changes. --- plugingui/mainwindow.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugingui/mainwindow.h') diff --git a/plugingui/mainwindow.h b/plugingui/mainwindow.h index 9a9359c..cd2eb1f 100644 --- a/plugingui/mainwindow.h +++ b/plugingui/mainwindow.h @@ -72,24 +72,24 @@ private: MainTab main_tab; TextEdit about_text_field{&tabs}; - Image back{":bg.png"}; - Image logo{":logo.png"}; + Image back{":resources/bg.png"}; + Image logo{":resources/logo.png"}; - TexturedBox sidebar{getImageCache(), ":sidebar.png", + TexturedBox sidebar{getImageCache(), ":resources/sidebar.png", 0, 0, // offset 16, 0, 0, // delta-x 14, 1, 14}; // delta-y - TexturedBox topbar{getImageCache(), ":topbar.png", + TexturedBox topbar{getImageCache(), ":resources/topbar.png", 0, 0, // atlas offset (x, y) 1, 1, 1, // dx1, dx2, dx3 17, 1, 1}; // dy1, dy2, dy3 bool closing{false}; - Resource about{":../../ABOUT"}; - Resource authors{":../../AUTHORS"}; - Resource gpl{":../../COPYING"}; + Resource about{":../ABOUT"}; + Resource authors{":../AUTHORS"}; + Resource gpl{":../COPYING"}; Font font; }; -- cgit v1.2.3