Skip to content

Commit

Permalink
settings/secrets: enforce same width
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Oct 28, 2024
1 parent 9b7c46a commit c26bf55
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 36 deletions.
71 changes: 43 additions & 28 deletions nitrokeyapp/ui/secrets_tab.ui
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0">
<property name="leftMargin">
<number>4</number>
</property>
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
<number>4</number>
</property>
<item>
<widget class="QStackedWidget" name="secret_tab">
Expand All @@ -45,36 +45,21 @@
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<property name="horizontalSpacing">
<number>3</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<item row="0" column="0">
<widget class="QListWidget" name="secrets_list">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>180</width>
<height>0</height>
</size>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
</widget>
</item>
<property name="verticalSpacing">
<number>6</number>
</property>
<item row="2" column="0">
<widget class="QWidget" name="__button_space_left" native="true">
<property name="sizePolicy">
Expand Down Expand Up @@ -126,9 +111,12 @@
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>63</width>
<width>80</width>
<height>20</height>
</size>
</property>
Expand Down Expand Up @@ -788,6 +776,33 @@
</layout>
</widget>
</item>
<item row="0" column="0">
<widget class="QListWidget" name="secrets_list">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>180</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>260</width>
<height>16777215</height>
</size>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
</font>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="page_incompatible">
Expand Down
34 changes: 26 additions & 8 deletions nitrokeyapp/ui/settings_tab.ui
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="leftMargin">
<number>4</number>
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
<number>4</number>
</property>
<item>
<widget class="QStackedWidget" name="settings_tab">
Expand All @@ -45,15 +45,21 @@
<property name="leftMargin">
<number>4</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="rightMargin">
<number>6</number>
</property>
<property name="bottomMargin">
<number>4</number>
</property>
<property name="horizontalSpacing">
<number>3</number>
</property>
<property name="topMargin">
<number>4</number>
</property>
<property name="verticalSpacing">
<number>6</number>
</property>
<item row="0" column="0">
<widget class="QTreeWidget" name="settings_tree">
<property name="sizePolicy">
Expand All @@ -68,6 +74,18 @@
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>260</width>
<height>16777215</height>
</size>
</property>
<property name="baseSize">
<size>
<width>260</width>
<height>0</height>
</size>
</property>
<property name="font">
<font>
<pointsize>11</pointsize>
Expand Down Expand Up @@ -212,16 +230,16 @@
<number>0</number>
</property>
<item>
<spacer name="__horizontal_spacer">
<spacer name="__horizontalSpacer2">
<property name="orientation">
<enum>Qt::Orientation::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Policy::MinimumExpanding</enum>
<enum>QSizePolicy::Policy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>260</width>
<width>258</width>
<height>20</height>
</size>
</property>
Expand Down

0 comments on commit c26bf55

Please sign in to comment.