mirror of
https://github.com/lubosz/overte.git
synced 2025-08-06 08:07:17 +02:00
added go button active state icon
This commit is contained in:
parent
92cb17cbbe
commit
039deb8b42
4 changed files with 41 additions and 13 deletions
18
interface/resources/images/address-bar-submit-active.svg
Normal file
18
interface/resources/images/address-bar-submit-active.svg
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 49 49" enable-background="new 0 0 49 49" xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<path fill="#333" d="M49,46c0,1.7-1.3,3-3,3H3c-1.7,0-3-1.3-3-3V3c0-1.7,1.3-3,3-3h43c1.7,0,3,1.3,3,3V46z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<g id="Your_Icon_11_">
|
||||||
|
<g>
|
||||||
|
<polygon fill="#E7EEEE" points="23.6,19.9 15.1,19.9 15.1,27.8 23.6,27.8 23.6,33.8 33,23.9 23.6,14 "/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 759 B |
18
interface/resources/images/address-bar-submit.svg
Normal file
18
interface/resources/images/address-bar-submit.svg
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 49 49" enable-background="new 0 0 49 49" xml:space="preserve">
|
||||||
|
<g>
|
||||||
|
<g>
|
||||||
|
<path fill="#0E7077" d="M49,46c0,1.7-1.3,3-3,3H3c-1.7,0-3-1.3-3-3V3c0-1.7,1.3-3,3-3h43c1.7,0,3,1.3,3,3V46z"/>
|
||||||
|
</g>
|
||||||
|
<g>
|
||||||
|
<g id="Your_Icon_11_">
|
||||||
|
<g>
|
||||||
|
<polygon fill="#E7EEEE" points="23.6,19.9 15.1,19.9 15.1,27.8 23.6,27.8 23.6,33.8 33,23.9 23.6,14 "/>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 762 B |
|
@ -1,7 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
||||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 49 49" enable-background="new 0 0 49 49" xml:space="preserve">
|
|
||||||
<g>
|
|
||||||
<polygon fill="#E7EEEE" points="23.6,19.9 15.1,19.9 15.1,27.8 23.6,27.8 23.6,33.8 33,23.9 23.6,14" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 482 B |
|
@ -54,10 +54,10 @@ void AddressBarDialog::setupUI() {
|
||||||
|
|
||||||
goButton = new QPushButton(this);
|
goButton = new QPushButton(this);
|
||||||
goButton->setSizePolicy(sizePolicy);
|
goButton->setSizePolicy(sizePolicy);
|
||||||
goButton->setMinimumSize(QSize(54, 54));
|
goButton->setMinimumSize(QSize(55, 55));
|
||||||
goButton->setIcon(QIcon(Application::resourcesPath() + "images/arrow.svg"));
|
goButton->setMaximumSize(QSize(55, 55));
|
||||||
goButton->setStyleSheet("background: #0e7077; color: #e7eeee; border-radius: 4px;");
|
goButton->setIcon(QIcon(Application::resourcesPath() + "images/address-bar-submit.svg"));
|
||||||
goButton->setIconSize(QSize(32, 32));
|
goButton->setIconSize(QSize(55, 55));
|
||||||
goButton->setDefault(true);
|
goButton->setDefault(true);
|
||||||
goButton->setFlat(true);
|
goButton->setFlat(true);
|
||||||
addressLayout->addWidget(goButton);
|
addressLayout->addWidget(goButton);
|
||||||
|
@ -83,8 +83,7 @@ void AddressBarDialog::setupUI() {
|
||||||
|
|
||||||
void AddressBarDialog::accept() {
|
void AddressBarDialog::accept() {
|
||||||
if (!addressLineEdit->text().isEmpty()) {
|
if (!addressLineEdit->text().isEmpty()) {
|
||||||
goButton->setStyleSheet("background: #333; color: #e7eeee; border-radius: 4px;");
|
goButton->setIcon(QIcon(Application::resourcesPath() + "images/address-bar-submit-active.svg"));
|
||||||
|
|
||||||
AddressManager& addressManager = AddressManager::getInstance();
|
AddressManager& addressManager = AddressManager::getInstance();
|
||||||
connect(&addressManager, &AddressManager::lookupResultsFinished, this, &QDialog::close);
|
connect(&addressManager, &AddressManager::lookupResultsFinished, this, &QDialog::close);
|
||||||
addressManager.handleLookupString(addressLineEdit->text());
|
addressManager.handleLookupString(addressLineEdit->text());
|
||||||
|
|
Loading…
Reference in a new issue