Skip to content

Commit fa5e54a

Browse files
committed
fix(gui): Fixed AboutDialog logo image path
1 parent f22d5fe commit fa5e54a

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed
Loading

source/rafcon/gui/design_config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ SOURCE_VIEW_FOLDER: $RELATIVE_PATH{../share/gtksourceview-3.0}
88
# overwrites gui_config.SOURCE_EDITOR_STYLE
99
SOURCE_VIEW_THEME: rafcon-dark
1010
ICONS_FOLDER: $RELATIVE_PATH{../share/icons}
11+
LOGO_FOLDER: $RELATIVE_PATH{assets/logo}
1112
SPLASH_SCREEN_FOLDER: $RELATIVE_PATH{assets/splashscreens}
1213
SPLASH_SCREEN_RESOLUTION_WIDTH: 530
1314
SPLASH_SCREEN_RESOLUTION_HEIGHT: 350

source/rafcon/gui/views/utils/about_dialog.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from gi.repository import Gtk
1515
from gi.repository import GdkPixbuf
1616
import rafcon
17+
from rafcon.gui.design_config import global_design_config
1718

1819

1920
class AboutDialogView(Gtk.AboutDialog):
@@ -26,5 +27,6 @@ def __init__(self):
2627
"Annika Wollschläger", "Benno Voggenreiter", "Matthias Büttner", "Mahmoud Akl"))
2728
self.set_copyright("DLR")
2829
self.set_license("Eclipse Public License 1.0")
29-
self.set_logo(GdkPixbuf.Pixbuf.new_from_file('documents/logo/bitmap/RAFCON_Logo_Farbe_RGB_negativ_small.png'))
30+
splash_screen_path = global_design_config.get_config_value("LOGO_FOLDER")+'/RAFCON_Logo_Farbe_RGB_negativ_small.png'
31+
self.set_logo(GdkPixbuf.Pixbuf.new_from_file(splash_screen_path))
3032
self.set_website("https://github.com/DLR-RM/RAFCON")

0 commit comments

Comments
 (0)