Adding conditions vanilla theme icons

Update uiconstants.py to include theme icon path for all weather conditions.
Moving DCS theme icons.
Created Vanilla theme icons
Fixes #1062
This commit is contained in:
Paul Dockar 2022-10-17 15:51:42 +11:00 committed by Dan Albert
parent b482dbb031
commit ab6eebab43
39 changed files with 45 additions and 19 deletions

View File

@ -56,10 +56,18 @@ def load_icons():
ICONS["Hangar"] = QPixmap("./resources/ui/misc/hangar.png") ICONS["Hangar"] = QPixmap("./resources/ui/misc/hangar.png")
ICONS["Dawn"] = QPixmap("./resources/ui/conditions/timeofday/dawn.png") ICONS["Dawn"] = QPixmap(
ICONS["Day"] = QPixmap("./resources/ui/conditions/timeofday/day.png") "./resources/ui/conditions/" + get_theme_icons() + "/timeofday/dawn.png"
ICONS["Dusk"] = QPixmap("./resources/ui/conditions/timeofday/dusk.png") )
ICONS["Night"] = QPixmap("./resources/ui/conditions/timeofday/night.png") ICONS["Day"] = QPixmap(
"./resources/ui/conditions/" + get_theme_icons() + "/timeofday/day.png"
)
ICONS["Dusk"] = QPixmap(
"./resources/ui/conditions/" + get_theme_icons() + "/timeofday/dusk.png"
)
ICONS["Night"] = QPixmap(
"./resources/ui/conditions/" + get_theme_icons() + "/timeofday/night.png"
)
ICONS["Money"] = QPixmap( ICONS["Money"] = QPixmap(
"./resources/ui/misc/" + get_theme_icons() + "/money_icon.png" "./resources/ui/misc/" + get_theme_icons() + "/money_icon.png"
@ -109,46 +117,64 @@ def load_icons():
""" """
Weather Icons Weather Icons
""" """
ICONS["Weather_winds"] = QPixmap("./resources/ui/conditions/weather/winds.png") ICONS["Weather_winds"] = QPixmap(
"./resources/ui/conditions/" + get_theme_icons() + "/weather/winds.png"
)
ICONS["Weather_day-clear"] = QPixmap( ICONS["Weather_day-clear"] = QPixmap(
"./resources/ui/conditions/weather/day-clear.png" "./resources/ui/conditions/" + get_theme_icons() + "/weather/day-clear.png"
) )
ICONS["Weather_day-cloudy-fog"] = QPixmap( ICONS["Weather_day-cloudy-fog"] = QPixmap(
"./resources/ui/conditions/weather/day-cloudy-fog.png" "./resources/ui/conditions/" + get_theme_icons() + "/weather/day-cloudy-fog.png"
)
ICONS["Weather_day-fog"] = QPixmap(
"./resources/ui/conditions/" + get_theme_icons() + "/weather/day-fog.png"
) )
ICONS["Weather_day-fog"] = QPixmap("./resources/ui/conditions/weather/day-fog.png")
ICONS["Weather_day-partly-cloudy"] = QPixmap( ICONS["Weather_day-partly-cloudy"] = QPixmap(
"./resources/ui/conditions/weather/day-partly-cloudy.png" "./resources/ui/conditions/"
+ get_theme_icons()
+ "/weather/day-partly-cloudy.png"
) )
ICONS["Weather_day-rain"] = QPixmap( ICONS["Weather_day-rain"] = QPixmap(
"./resources/ui/conditions/weather/day-rain.png" "./resources/ui/conditions/" + get_theme_icons() + "/weather/day-rain.png"
) )
ICONS["Weather_day-thunderstorm"] = QPixmap( ICONS["Weather_day-thunderstorm"] = QPixmap(
"./resources/ui/conditions/weather/day-thunderstorm.png" "./resources/ui/conditions/"
+ get_theme_icons()
+ "/weather/day-thunderstorm.png"
) )
ICONS["Weather_day-totally-cloud"] = QPixmap( ICONS["Weather_day-totally-cloud"] = QPixmap(
"./resources/ui/conditions/weather/day-totally-cloud.png" "./resources/ui/conditions/"
+ get_theme_icons()
+ "/weather/day-totally-cloud.png"
) )
ICONS["Weather_night-clear"] = QPixmap( ICONS["Weather_night-clear"] = QPixmap(
"./resources/ui/conditions/weather/night-clear.png" "./resources/ui/conditions/" + get_theme_icons() + "/weather/night-clear.png"
) )
ICONS["Weather_night-cloudy-fog"] = QPixmap( ICONS["Weather_night-cloudy-fog"] = QPixmap(
"./resources/ui/conditions/weather/night-cloudy-fog.png" "./resources/ui/conditions/"
+ get_theme_icons()
+ "/weather/night-cloudy-fog.png"
) )
ICONS["Weather_night-fog"] = QPixmap( ICONS["Weather_night-fog"] = QPixmap(
"./resources/ui/conditions/weather/night-fog.png" "./resources/ui/conditions/" + get_theme_icons() + "/weather/night-fog.png"
) )
ICONS["Weather_night-partly-cloudy"] = QPixmap( ICONS["Weather_night-partly-cloudy"] = QPixmap(
"./resources/ui/conditions/weather/night-partly-cloudy.png" "./resources/ui/conditions/"
+ get_theme_icons()
+ "/weather/night-partly-cloudy.png"
) )
ICONS["Weather_night-rain"] = QPixmap( ICONS["Weather_night-rain"] = QPixmap(
"./resources/ui/conditions/weather/night-rain.png" "./resources/ui/conditions/" + get_theme_icons() + "/weather/night-rain.png"
) )
ICONS["Weather_night-thunderstorm"] = QPixmap( ICONS["Weather_night-thunderstorm"] = QPixmap(
"./resources/ui/conditions/weather/night-thunderstorm.png" "./resources/ui/conditions/"
+ get_theme_icons()
+ "/weather/night-thunderstorm.png"
) )
ICONS["Weather_night-totally-cloud"] = QPixmap( ICONS["Weather_night-totally-cloud"] = QPixmap(
"./resources/ui/conditions/weather/night-totally-cloud.png" "./resources/ui/conditions/"
+ get_theme_icons()
+ "/weather/night-totally-cloud.png"
) )
ICONS["heading"] = QPixmap("./resources/ui/misc/heading.png") ICONS["heading"] = QPixmap("./resources/ui/misc/heading.png")

View File

Before

Width:  |  Height:  |  Size: 692 B

After

Width:  |  Height:  |  Size: 692 B

View File

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 634 B

View File

Before

Width:  |  Height:  |  Size: 671 B

After

Width:  |  Height:  |  Size: 671 B

View File

Before

Width:  |  Height:  |  Size: 482 B

After

Width:  |  Height:  |  Size: 482 B

View File

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 634 B

View File

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 345 B

View File

Before

Width:  |  Height:  |  Size: 484 B

After

Width:  |  Height:  |  Size: 484 B

View File

Before

Width:  |  Height:  |  Size: 470 B

After

Width:  |  Height:  |  Size: 470 B

View File

Before

Width:  |  Height:  |  Size: 567 B

After

Width:  |  Height:  |  Size: 567 B

View File

Before

Width:  |  Height:  |  Size: 584 B

After

Width:  |  Height:  |  Size: 584 B

View File

Before

Width:  |  Height:  |  Size: 332 B

After

Width:  |  Height:  |  Size: 332 B

View File

Before

Width:  |  Height:  |  Size: 320 B

After

Width:  |  Height:  |  Size: 320 B

View File

Before

Width:  |  Height:  |  Size: 345 B

After

Width:  |  Height:  |  Size: 345 B

View File

Before

Width:  |  Height:  |  Size: 437 B

After

Width:  |  Height:  |  Size: 437 B

View File

Before

Width:  |  Height:  |  Size: 405 B

After

Width:  |  Height:  |  Size: 405 B

View File

Before

Width:  |  Height:  |  Size: 496 B

After

Width:  |  Height:  |  Size: 496 B

View File

Before

Width:  |  Height:  |  Size: 481 B

After

Width:  |  Height:  |  Size: 481 B

View File

Before

Width:  |  Height:  |  Size: 332 B

After

Width:  |  Height:  |  Size: 332 B

View File

Before

Width:  |  Height:  |  Size: 276 B

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 727 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 759 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 784 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 439 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 339 B