Skip to content

Commit

Permalink
Layout changes to Create3Widget
Browse files Browse the repository at this point in the history
  • Loading branch information
erinharrington-12 committed Apr 9, 2024
1 parent 1e71f1d commit 0632bb9
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 54 deletions.
2 changes: 1 addition & 1 deletion src/Create3Widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Create3Widget::Create3Widget(Device *device, QWidget *parent)
{
ui->setupUi(this);
performStandardSetup(tr("Create 3"), false);
setStyleSheet("QScrollBar:vertical {border: 2px solid grey;background:grey ;width: 100px; margin: 22px 0 22px 0; } QScrollBar::handle:vertical { border: 2px solid grey;background: white; min-height: 20px; } QScrollBar::add-line:vertical { border: 2px solid grey;background: #32CC99; height: 20px; subcontrol-position: bottom; subcontrol-origin: margin; } QScrollBar::sub-line:vertical {border: 2px solid grey; background: #32CC99; height: 20px; subcontrol-position: top; subcontrol-origin: margin; } QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical { border: 2px solid grey;width: 3px; height: 3px; background: white; }QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {border: 2px solid grey; background: none;}");
setStyleSheet("QScrollBar:vertical {border: 2px solid grey;background:grey ;width: 80px; margin: 22px 0 22px 0; } QScrollBar::handle:vertical { border: 2px solid grey;background: white; min-height: 20px; } QScrollBar::add-line:vertical { border: 2px solid grey;background: #32CC99; height: 20px; subcontrol-position: bottom; subcontrol-origin: margin; } QScrollBar::sub-line:vertical {border: 2px solid grey; background: #32CC99; height: 20px; subcontrol-position: top; subcontrol-origin: margin; } QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical { border: 2px solid grey;width: 3px; height: 3px; background: white; }QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {border: 2px solid grey; background: none;}");

ui->create3IP->setText(getIP());

Expand Down
109 changes: 56 additions & 53 deletions ui/Create3Widget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -23,67 +23,70 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>11</number>
<number>7</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<property name="spacing">
<number>7</number>
</property>
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>35</number>
</property>
<layout class="QHBoxLayout" name="IPHorizontal">
<item>
<layout class="QHBoxLayout" name="IPHorizontal">
<item>
<widget class="QLabel" name="create3IPLabel">
<property name="maximumSize">
<size>
<width>160</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>22</pointsize>
</font>
</property>
<property name="text">
<string>Create3 IP:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="create3IP">
<property name="minimumSize">
<size>
<width>25</width>
<height>0</height>
</size>
</property>
<property name="font">
<font>
<pointsize>22</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
<widget class="QLabel" name="create3IPLabel">
<property name="maximumSize">
<size>
<width>180</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<family>Ubuntu</family>
<pointsize>25</pointsize>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">font: 700 25pt &quot;Ubuntu&quot;;</string>
</property>
<property name="text">
<string>Create3 IP:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="create3IP">
<property name="minimumSize">
<size>
<width>25</width>
<height>0</height>
</size>
</property>
<property name="font">
<font>
<pointsize>22</pointsize>
</font>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<property name="leftMargin">
<number>10</number>
</property>
<item>
<widget class="QLabel" name="wifiToggleLabel">
<property name="minimumSize">
Expand Down

0 comments on commit 0632bb9

Please sign in to comment.