To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit c0b8576b authored by holukas's avatar holukas
Browse files

Styling and init images folder

parent 9372a6b0
......@@ -3,9 +3,9 @@
<component name="ChangeListManager">
<list default="true" id="254ecb79-655b-4854-8af6-177bb7347e8a" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bico/bico.py" beforeDir="false" afterPath="$PROJECT_DIR$/bico/bico.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bico/gui/gui.css" beforeDir="false" afterPath="$PROJECT_DIR$/bico/gui/gui.css" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bico/gui/gui.py" beforeDir="false" afterPath="$PROJECT_DIR$/bico/gui/gui.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bico/settings/_version.py" beforeDir="false" afterPath="$PROJECT_DIR$/bico/settings/_version.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/bico/gui/gui_elements.py" beforeDir="false" afterPath="$PROJECT_DIR$/bico/gui/gui_elements.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -280,7 +280,7 @@
<workItem from="1607380059042" duration="6278000" />
<workItem from="1607436447683" duration="6112000" />
<workItem from="1607504715733" duration="6609000" />
<workItem from="1607594405028" duration="980000" />
<workItem from="1607594405028" duration="2772000" />
</task>
<servers />
</component>
......@@ -313,7 +313,7 @@
<SUITE FILE_PATH="coverage/BICO$main.coverage" NAME="bico Coverage Results" MODIFIED="1598258463691" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/bico" />
<SUITE FILE_PATH="coverage/BICO_Binary_Converter$gui.coverage" NAME="gui Coverage Results" MODIFIED="1606435918815" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/bico" />
<SUITE FILE_PATH="coverage/BICO_Binary_Converter$main.coverage" NAME="main Coverage Results" MODIFIED="1596498134562" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/bico" />
<SUITE FILE_PATH="coverage/BICO_Binary_Converter$start_bico.coverage" NAME="start_bico Coverage Results" MODIFIED="1607595278379" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/bico" />
<SUITE FILE_PATH="coverage/BICO_Binary_Converter$start_bico.coverage" NAME="start_bico Coverage Results" MODIFIED="1607597185119" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/bico" />
<SUITE FILE_PATH="coverage/BICO_Binary_Converter$example.coverage" NAME="example Coverage Results" MODIFIED="1606348759035" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/example" />
</component>
</project>
\ No newline at end of file
QLabel{color: #455a64;} /* bluegray 700 */
QLabel[labelClass="header_1"]{font-size: 18pt; padding: 0.1em 0 0.2em 0; font-weight: bold;}
QLabel[labelClass="header_2"]{font-size: 14pt; padding: 1.5em 0 0.5em 0; margin-left: 10px;}
QLabel[labelClass="header_3"]{font-weight: bold;}
QLabel[labelClass="bold"]{font-weight: bold; margin-left: 20px;}
QLabel {color: #455a64;} /* bluegray 700 */
QLabel[labelClass="header_1"] {font-size: 18pt; padding: 0.1em 0 0.2em 0; font-weight: bold;}
QLabel[labelClass="header_2"] {font-size: 14pt; padding: 1.5em 0 0.5em 0; margin-left: 10px;}
QLabel[labelClass="header_3"] {font-weight: bold;}
QLabel[labelClass="bold"] {font-weight: bold; margin-left: 20px;}
QLabel[labelClass="label_link"] {padding: 5px;}
QFrame{}
QFrame[labelClass="section_bg_instruments"]{background-color: white; padding: 20px; margin: 10px;}
QFrame[labelClass="section_bg_raw_data"]{background-color: white; padding: 20px; margin: 10px;}
QFrame[labelClass="section_bg_output"]{background-color: white; padding: 20px; margin: 10px;}
QFrame[labelClass="section_bg_controls"]{background-color: white; padding: 20px; margin: 10px;}
QFrame[labelClass="section_bg_instruments"] {background-color: white; padding: 20px; margin: 10px;}
QFrame[labelClass="section_bg_raw_data"] {background-color: white; padding: 20px; margin: 10px;}
QFrame[labelClass="section_bg_output"] {background-color: white; padding: 20px; margin: 10px;}
QFrame[labelClass="section_bg_controls"] {background-color: white; padding: 20px; margin: 10px;}
QComboBox{border: 1px solid #B0BEC5; padding: 10px; background: #ECEFF1; color: #424242; font-weight: bold;} /* blue grey 200, 50, grey 800 */
......
......@@ -4,9 +4,9 @@ from PyQt5 import QtGui as qtg
from PyQt5 import QtWidgets as qtw
from PyQt5.QtGui import QPixmap
import settings._version as info
from gui import gui_elements
from help import tooltips
import settings._version as info
class Ui_MainWindow(object):
......@@ -72,11 +72,19 @@ class Ui_MainWindow(object):
label_txt3 = qtw.QLabel(f"v{info.__version__} / {info.__date__}")
label_txt3.setAlignment(qtc.Qt.AlignCenter | qtc.Qt.AlignVCenter)
self.lbl_link_releases = qtw.QLabel(f"<a href='{info.__link_releases__}'>Releases</a>\n")
self.lbl_link_source_code = qtw.QLabel(f"<a href='{info.__link_source_code__}'>Source Code</a>\n")
self.lbl_link_license = qtw.QLabel(f"<a href='{info.__license__}'>License</a>\n")
self.lbl_link_help = qtw.QLabel(f"<a href='{info.__link_wiki__}'>Help</a>\n")
# label_txt_links.setAlignment(qtc.Qt.AlignCenter | qtc.Qt.AlignVCenter)
# Links
# self.lbl_link_releases = qtw.QLabel(f"<a href='{info.__link_releases__}'>Releases</a>\n")
# self.lbl_link_releases.setAlignment(qtc.Qt.AlignCenter | qtc.Qt.AlignVCenter)
# grid.addWidget(self.lbl_link_releases, 5, 0)
self.lbl_link_releases = gui_elements.add_label_link_to_grid(
link_txt='Releases', link_str=info.__link_releases__, grid=grid, row=5)
self.lbl_link_source_code = gui_elements.add_label_link_to_grid(
link_txt='Source Code', link_str=info.__link_source_code__, grid=grid, row=6)
self.lbl_link_license = gui_elements.add_label_link_to_grid(
link_txt='License', link_str=info.__license__, grid=grid, row=7)
self.lbl_link_help = gui_elements.add_label_link_to_grid(
link_txt='Help', link_str=info.__link_wiki__, grid=grid, row=8)
grid.addWidget(label_image, 0, 0)
grid.addWidget(qtw.QLabel(), 1, 0)
......@@ -84,11 +92,6 @@ class Ui_MainWindow(object):
grid.addWidget(label_txt2, 3, 0)
grid.addWidget(label_txt3, 4, 0)
grid.addWidget(self.lbl_link_releases, 5, 0)
grid.addWidget(self.lbl_link_source_code, 6, 0)
grid.addWidget(self.lbl_link_license, 7, 0)
grid.addWidget(self.lbl_link_help, 8, 0)
grid.setRowStretch(9, 1)
section.setLayout(grid)
return section
......
......@@ -40,3 +40,10 @@ def add_button_to_grid(label, grid, row, colspan=1):
grid.addWidget(button, row, 0, 1, colspan)
return button
def add_label_link_to_grid(link_txt, link_str, grid, row, colspan=1):
label_link = qtw.QLabel(f"<a href='{link_str}'>{link_txt}</a>\n")
label_link.setProperty('labelClass', 'label_link')
label_link.setAlignment(qtc.Qt.AlignCenter | qtc.Qt.AlignVCenter)
grid.addWidget(label_link, row, 0, 1, colspan)
return label_link
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment