Skip to content

Commit

Permalink
[ui] Reduce visual attention grab of the authentication settings wige…
Browse files Browse the repository at this point in the history
…t's warning label
  • Loading branch information
nirvn committed Jun 11, 2020
1 parent 6c2a638 commit 60fe81a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/gui/auth/qgsauthsettingswidget.cpp
Expand Up @@ -104,7 +104,7 @@ const QString QgsAuthSettingsWidget::dataprovider() const

const QString QgsAuthSettingsWidget::formattedWarning( WarningType warning )
{
QString out = tr( "<div>Warning: credentials stored as plain text in %1.</div>" );
QString out = tr( "Warning: credentials stored as plain text in %1." );
switch ( warning )
{
case ProjectFile:
Expand Down
41 changes: 26 additions & 15 deletions src/ui/auth/qgsauthsettingswidget.ui
Expand Up @@ -173,21 +173,32 @@
</property>
</widget>
</item>
<item row="3" column="0" colspan="3">
<widget class="QLabel" name="lblWarning">
<property name="styleSheet">
<string notr="true">QLabel{color: rgb(255, 0, 0);font-weight: bold;}</string>
</property>
<property name="text">
<string>Warning text!</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
<item row="3" column="1" colspan="2">
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="lblWarningIcon">
<property name="pixmap">
<pixmap>:/images/themes/default/mIconWarning.svg</pixmap>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="lblWarning">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string></string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="txtUserName">
Expand Down

0 comments on commit 60fe81a

Please sign in to comment.