Skip to content
Permalink
Browse files

[python console] improve settings UI (#7041)

- improve UI spacing
- harmonize reset icon
  • Loading branch information
nirvn committed May 21, 2018
1 parent 42199d1 commit a7397b17266b84409efb96e13fe3b7da47f3eb60
@@ -144,7 +144,6 @@
<file>themes/default/console/iconSearchNextEditorConsole.svg</file>
<file>themes/default/console/iconSearchPrevEditorConsole.svg</file>
<file>themes/default/console/iconSyntaxErrorConsole.svg</file>
<file>themes/default/console/iconResetColorConsole.svg</file>
<file>themes/default/copyright_label.svg</file>
<file>themes/default/dbmanager.svg</file>
<file>themes/default/extents.svg</file>

This file was deleted.

@@ -54,9 +54,9 @@ def __init__(self, parent):
self.removeAPIpath.clicked.connect(self.removeAPI)
self.compileAPIs.clicked.connect(self._prepareAPI)

self.resetFontColor.setIcon(QIcon(":/images/themes/default/console/iconResetColorConsole.svg"))
self.resetFontColor.setIcon(QIcon(":/images/themes/default/mActionUndo.svg"))
self.resetFontColor.setIconSize(QSize(18, 18))
self.resetFontColorEditor.setIcon(QIcon(":/images/themes/default/console/iconResetColorConsole.svg"))
self.resetFontColorEditor.setIcon(QIcon(":/images/themes/default/mActionUndo.svg"))
self.resetFontColorEditor.setIconSize(QSize(18, 18))
self.resetFontColor.clicked.connect(self._resetFontColor)
self.resetFontColorEditor.clicked.connect(self._resetFontColorEditor)
@@ -9,8 +9,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>870</width>
<height>581</height>
<width>995</width>
<height>630</height>
</rect>
</property>
<property name="sizePolicy">
@@ -396,56 +396,56 @@
</property>
</widget>
</item>
<item row="3" column="4">
<item row="4" column="0">
<widget class="QLabel" name="label_29">
<property name="text">
<string>Triple single quote</string>
</property>
</widget>
</item>
<item row="3" column="5">
<item row="4" column="1">
<widget class="QgsColorButton" name="tripleSingleQuoteFontColor">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="4" column="0">
<item row="4" column="2">
<widget class="QLabel" name="label_30">
<property name="text">
<string>Triple double quote</string>
</property>
</widget>
</item>
<item row="4" column="1">
<item row="4" column="3">
<widget class="QgsColorButton" name="tripleDoubleQuoteFontColor">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="4" column="4">
<item row="3" column="4">
<widget class="QLabel" name="label_15">
<property name="text">
<string>Background</string>
</property>
</widget>
</item>
<item row="4" column="5">
<item row="3" column="5">
<widget class="QgsColorButton" name="paperBackgroundColor">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="5" column="4">
<item row="4" column="4">
<widget class="QLabel" name="label_14">
<property name="text">
<string>Error</string>
</property>
</widget>
</item>
<item row="5" column="5">
<item row="4" column="5">
<widget class="QgsColorButton" name="stderrFontColor">
<property name="text">
<string/>
@@ -605,6 +605,19 @@
</layout>
</widget>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
@@ -644,23 +657,44 @@
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QCheckBox" name="enableObjectInspector">
<property name="text">
<string>Enable Object Inspector (switching between tabs may be slow)</string>
<widget class="QgsCollapsibleGroupBox" name="groupBoxRunDebugEditor">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="checked">
<property name="title">
<string>Run and Debug</string>
</property>
<property name="collapsed" stdset="0">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="autoSaveScript">
<property name="text">
<string>Auto-save script before running</string>
<property name="saveCollapsedState" stdset="0">
<bool>true</bool>
</property>
<layout class="QGridLayout" name="gridLayout_14">
<item row="0" column="0">
<widget class="QCheckBox" name="enableObjectInspector">
<property name="text">
<string>Enable Object Inspector (switching between tabs may be slow)</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="autoSaveScript">
<property name="text">
<string>Auto-save script before running</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<item row="1" column="0">
<widget class="QgsCollapsibleGroupBox" name="groupBoxFontColorEditor">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
@@ -890,42 +924,42 @@
</property>
</widget>
</item>
<item row="3" column="4">
<item row="4" column="0">
<widget class="QLabel" name="label_34">
<property name="text">
<string>Triple single quote</string>
</property>
</widget>
</item>
<item row="3" column="5">
<item row="4" column="1">
<widget class="QgsColorButton" name="tripleSingleQuoteFontColorEditor">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="4" column="0">
<item row="4" column="2">
<widget class="QLabel" name="label_35">
<property name="text">
<string>Triple double quote</string>
</property>
</widget>
</item>
<item row="4" column="1">
<item row="4" column="3">
<widget class="QgsColorButton" name="tripleDoubleQuoteFontColorEditor">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="4" column="4">
<item row="3" column="4">
<widget class="QLabel" name="label_21">
<property name="text">
<string>Background</string>
</property>
</widget>
</item>
<item row="4" column="5">
<item row="3" column="5">
<widget class="QgsColorButton" name="paperBackgroundColorEditor">
<property name="text">
<string/>
@@ -967,7 +1001,7 @@
</layout>
</widget>
</item>
<item row="3" column="0">
<item row="2" column="0">
<widget class="QgsCollapsibleGroupBox" name="groupBoxAutoCompletionEditor">
<property name="title">
<string>Autocompletion</string>
@@ -1052,7 +1086,7 @@
</layout>
</widget>
</item>
<item row="4" column="0">
<item row="3" column="0">
<widget class="QgsCollapsibleGroupBox" name="groupBox_5">
<property name="title">
<string>Typing</string>
@@ -1085,6 +1119,19 @@
</layout>
</widget>
</item>
<item row="5" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>

0 comments on commit a7397b1

Please sign in to comment.
You can’t perform that action at this time.