mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Add a toolbar button for filing a bug.
This commit is contained in:
parent
b63ecc59fb
commit
2f0a7e4f12
@ -26,6 +26,7 @@ def load_icons():
|
|||||||
ICONS["Github"] = QPixmap(
|
ICONS["Github"] = QPixmap(
|
||||||
"./resources/ui/misc/" + get_theme_icons() + "/github.png"
|
"./resources/ui/misc/" + get_theme_icons() + "/github.png"
|
||||||
)
|
)
|
||||||
|
ICONS["Bug"] = QPixmap("./resources/ui/misc/" + get_theme_icons() + "/bug.png")
|
||||||
ICONS["Ukraine"] = QPixmap("./resources/ui/misc/ukraine.png")
|
ICONS["Ukraine"] = QPixmap("./resources/ui/misc/ukraine.png")
|
||||||
|
|
||||||
ICONS["Control Points"] = QPixmap(
|
ICONS["Control Points"] = QPixmap(
|
||||||
|
|||||||
@ -194,6 +194,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
)
|
)
|
||||||
|
|
||||||
self.bug_report_action = QAction("Report an &issue", self)
|
self.bug_report_action = QAction("Report an &issue", self)
|
||||||
|
self.bug_report_action.setIcon(CONST.ICONS["Bug"])
|
||||||
self.bug_report_action.triggered.connect(self.show_bug_report_dialog)
|
self.bug_report_action.triggered.connect(self.show_bug_report_dialog)
|
||||||
|
|
||||||
self.openLogsAction = QAction("Show &logs", self)
|
self.openLogsAction = QAction("Show &logs", self)
|
||||||
@ -236,6 +237,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
self.links_bar = self.addToolBar("Links")
|
self.links_bar = self.addToolBar("Links")
|
||||||
self.links_bar.addAction(self.openDiscordAction)
|
self.links_bar.addAction(self.openDiscordAction)
|
||||||
self.links_bar.addAction(self.openGithubAction)
|
self.links_bar.addAction(self.openGithubAction)
|
||||||
|
self.links_bar.addAction(self.bug_report_action)
|
||||||
self.links_bar.addAction(self.ukraineAction)
|
self.links_bar.addAction(self.ukraineAction)
|
||||||
|
|
||||||
self.actions_bar = self.addToolBar("Actions")
|
self.actions_bar = self.addToolBar("Actions")
|
||||||
@ -461,6 +463,7 @@ class QLiberationWindow(QMainWindow):
|
|||||||
"<b>Ciribob </b> <i>for the JTACAutoLase.lua script</i><br/>"
|
"<b>Ciribob </b> <i>for the JTACAutoLase.lua script</i><br/>"
|
||||||
"<b>Walder </b> <i>for the Skynet-IADS script</i><br/>"
|
"<b>Walder </b> <i>for the Skynet-IADS script</i><br/>"
|
||||||
"<b>Anubis Yinepu </b> <i>for the Hercules Cargo script</i><br/>"
|
"<b>Anubis Yinepu </b> <i>for the Hercules Cargo script</i><br/>"
|
||||||
|
'<a href="https://www.flaticon.com/free-icons/bug" title="bug icons" style="color: #ffffff">Bug icons created by Freepik - Flaticon</a>'
|
||||||
+ "<h4>Splash Screen :</h4>"
|
+ "<h4>Splash Screen :</h4>"
|
||||||
+ "Artwork by Andriy Dankovych (CC BY-SA) [https://www.facebook.com/AndriyDankovych]"
|
+ "Artwork by Andriy Dankovych (CC BY-SA) [https://www.facebook.com/AndriyDankovych]"
|
||||||
)
|
)
|
||||||
|
|||||||
BIN
resources/ui/misc/dark/bug.png
Normal file
BIN
resources/ui/misc/dark/bug.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
resources/ui/misc/light/bug.png
Normal file
BIN
resources/ui/misc/light/bug.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.4 KiB |
Loading…
x
Reference in New Issue
Block a user