mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Improve Kiwix Serve dialog look and feel #421
This commit is contained in:
parent
de581750f3
commit
7bd7c585fc
@ -3,13 +3,13 @@ QWidget {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QPushButton {
|
QPushButton {
|
||||||
|
opacity: 1;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 3px;
|
padding: 3px;
|
||||||
color:blue;
|
color: RoyalBlue;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton:hover {
|
QPushButton:hover {
|
||||||
background-color: blue;
|
color: DeepSkyBlue;
|
||||||
color: white;
|
}
|
||||||
}
|
|
||||||
|
@ -32,8 +32,12 @@ LocalKiwixServer::LocalKiwixServer(QWidget *parent) :
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ui->KiwixServerButton->setStyleSheet("QPushButton {background-color: RoyalBlue;"
|
||||||
|
"color: white;"
|
||||||
|
"padding: 5px;"
|
||||||
|
"border-radius: 3px;}"
|
||||||
|
"QPushButton:hover {background-color: DodgerBlue;}");
|
||||||
ui->label->setText(gt("local-kiwix-server"));
|
ui->label->setText(gt("local-kiwix-server"));
|
||||||
ui->label->setStyleSheet("font-weight: bold;");
|
|
||||||
ui->KiwixServerText->setText(gt("kiwix-server-description"));
|
ui->KiwixServerText->setText(gt("kiwix-server-description"));
|
||||||
ui->OpenInBrowserButton->setText(gt("open-in-browser"));
|
ui->OpenInBrowserButton->setText(gt("open-in-browser"));
|
||||||
ui->KiwixServerButton->setText(gt("start-kiwix-server"));
|
ui->KiwixServerButton->setText(gt("start-kiwix-server"));
|
||||||
|
@ -7,55 +7,87 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
<height>342</height>
|
<height>140</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Local Kiwix Server Settings - Kiwix</string>
|
<string>Local Kiwix Server Settings - Kiwix</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="2" column="0" colspan="2">
|
<item row="3" column="0">
|
||||||
<widget class="QTextBrowser" name="KiwixServerText">
|
<widget class="QLineEdit" name="IpAddress">
|
||||||
<property name="frameShape">
|
<property name="inputMask">
|
||||||
<enum>QFrame::NoFrame</enum>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="html">
|
<property name="frame">
|
||||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
<bool>false</bool>
|
||||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
</property>
|
||||||
p, li { white-space: pre-wrap; }
|
<property name="readOnly">
|
||||||
</style></head><body style=" font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;">
|
<bool>true</bool>
|
||||||
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QPushButton" name="KiwixServerButton">
|
<widget class="QPushButton" name="OpenInBrowserButton">
|
||||||
|
<property name="enabled">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>11</pointsize>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="cursor">
|
<property name="cursor">
|
||||||
<cursorShape>PointingHandCursor</cursorShape>
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Start Kiwix Server</string>
|
<string>Open in browser</string>
|
||||||
</property>
|
|
||||||
<property name="default">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="flat">
|
<property name="flat">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0">
|
<item row="2" column="0" colspan="2">
|
||||||
<spacer name="verticalSpacer">
|
<widget class="QLabel" name="KiwixServerText">
|
||||||
<property name="orientation">
|
<property name="sizePolicy">
|
||||||
<enum>Qt::Vertical</enum>
|
<sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0">
|
<property name="font">
|
||||||
<size>
|
<font>
|
||||||
<width>20</width>
|
<pointsize>11</pointsize>
|
||||||
<height>40</height>
|
</font>
|
||||||
</size>
|
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<property name="text">
|
||||||
|
<string>TextLabel</string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>12</pointsize>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Local Kiwix Server</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0">
|
<item row="5" column="0">
|
||||||
<spacer name="horizontalSpacer">
|
<spacer name="horizontalSpacer">
|
||||||
@ -70,39 +102,30 @@ p, li { white-space: pre-wrap; }
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0">
|
<item row="5" column="1">
|
||||||
<widget class="QLineEdit" name="IpAddress">
|
<widget class="QPushButton" name="KiwixServerButton">
|
||||||
<property name="frame">
|
<property name="font">
|
||||||
<bool>false</bool>
|
<font>
|
||||||
</property>
|
<pointsize>11</pointsize>
|
||||||
<property name="readOnly">
|
</font>
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QPushButton" name="OpenInBrowserButton">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="cursor">
|
<property name="cursor">
|
||||||
<cursorShape>PointingHandCursor</cursorShape>
|
<cursorShape>PointingHandCursor</cursorShape>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="autoFillBackground">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Open in browser</string>
|
<string>Start Kiwix Server</string>
|
||||||
|
</property>
|
||||||
|
<property name="default">
|
||||||
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="flat">
|
<property name="flat">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="text">
|
|
||||||
<string>Local Kiwix Server</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user