Skip to content

Commit

Permalink
Merge pull request #3 from HakaiInstitute/dark-ui
Browse files Browse the repository at this point in the history
Update UI to dark colours
  • Loading branch information
tayden authored Aug 2, 2023
2 parents db39c2a + e9492be commit aed3fa7
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 56 deletions.
3 changes: 2 additions & 1 deletion las_trx/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@ def __init__(self):
else:
self.label_upgrade_link.setText(
f"<a href=\"{upgrade_version['html_url']}\">"
"<span style=\"text-decoration: underline; color:rgb(153, 193, 241)\">"
f"New version available (v{upgrade_version['tag_name']})"
f"</a>"
f"</span></a>"
)

self.done_msg_box = QMessageBox(self)
Expand Down
153 changes: 98 additions & 55 deletions las_trx/resources/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
<property name="windowTitle">
<string>LAS TRX</string>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(61, 56, 70);
color: rgb(143, 240, 164)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="leftMargin">
<number>9</number>
Expand All @@ -22,6 +29,9 @@
</property>
<item>
<widget class="QFrame" name="frame_input">
<property name="styleSheet">
<string notr="true">background-color: rgb(36, 31, 49);</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
Expand All @@ -40,10 +50,12 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>Origin</string>
</property>
Expand Down Expand Up @@ -379,6 +391,12 @@
</item>
<item>
<widget class="QFrame" name="frame_output">
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(36, 31, 49)</string>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
Expand All @@ -397,7 +415,6 @@
<property name="font">
<font>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
Expand Down Expand Up @@ -709,73 +726,99 @@
</widget>
</item>
<item>
<widget class="QLabel" name="label_log_output">
<property name="text">
<string>Log Output</string>
<widget class="QWidget" name="widget_logs" native="true">
<property name="styleSheet">
<string notr="true">background-color: rgb(36, 31, 49)</string>
</property>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="textBrowser_log_output">
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_actions" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QProgressBar" name="progressBar">
<property name="value">
<number>0</number>
<widget class="QLabel" name="label_log_output">
<property name="text">
<string>Logs</string>
</property>
<property name="textVisible">
<bool>true</bool>
</widget>
</item>
<item>
<widget class="QTextBrowser" name="textBrowser_log_output">
<property name="styleSheet">
<string notr="true">background-color: rgb(31, 26, 40);</string>
</property>
<property name="frameShadow">
<enum>QFrame::Sunken</enum>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="widget_actions" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<item>
<widget class="QProgressBar" name="progressBar">
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="value">
<number>0</number>
</property>
<property name="textVisible">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_convert">
<property name="styleSheet">
<string notr="true">color: rgb(61, 56, 70);
background-color: rgb(87, 227, 137)
</string>
</property>
<property name="text">
<string>Convert</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButton_convert">
<widget class="QLabel" name="label_upgrade_link">
<property name="enabled">
<bool>true</bool>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="text">
<string>Convert</string>
<string notr="true">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/HakaiInstitute/LAS-TRX/releases/tag/0.0.0&quot;&gt;&lt;span style=&quot;text-decoration: underline; color:rgb(153, 193, 241)&quot;&gt;New version available (v0.0.0)&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item alignment="Qt::AlignRight">
<widget class="QLabel" name="label_upgrade_link">
<property name="enabled">
<bool>true</bool>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
<string notr="true">&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/HakaiInstitute/LAS-TRX/releases/tag/0.0.0&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;New version available (v0.0.0)&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse</set>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>
Expand Down

0 comments on commit aed3fa7

Please sign in to comment.