Author: mir3x Date: Thu Oct 20 09:44:18 2016 New Revision: 34185 URL: http://svn.gna.org/viewcvs/freeciv?rev=34185&view=rev Log: Qt client - control overview border color from theme
See patch #7849 Modified: trunk/client/gui-qt/mapview.cpp trunk/data/themes/gui-qt/Classic/resource.qss trunk/data/themes/gui-qt/Necrophos/resource.qss trunk/data/themes/gui-qt/NightStalker/resource.qss Modified: trunk/client/gui-qt/mapview.cpp URL: http://svn.gna.org/viewcvs/freeciv/trunk/client/gui-qt/mapview.cpp?rev=34185&r1=34184&r2=34185&view=diff ============================================================================== --- trunk/client/gui-qt/mapview.cpp (original) +++ trunk/client/gui-qt/mapview.cpp Thu Oct 20 09:44:18 2016 @@ -774,8 +774,7 @@ painter->drawPixmap(0, iy, *pix, x, 0, ix, y); painter->drawPixmap(0, 0, *pix, x, y, ix, iy); } - painter->setPen(QColor(Qt::yellow)); - painter->setRenderHint(QPainter::Antialiasing); + painter->setPen(QColor(palette().color(QPalette::Highlight))); painter->drawRect(0, 0, width() - 1, height() - 1); draw_viewport(painter); rw->put_to_corner(); Modified: trunk/data/themes/gui-qt/Classic/resource.qss URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/themes/gui-qt/Classic/resource.qss?rev=34185&r1=34184&r2=34185&view=diff ============================================================================== --- trunk/data/themes/gui-qt/Classic/resource.qss (original) +++ trunk/data/themes/gui-qt/Classic/resource.qss Thu Oct 20 09:44:18 2016 @@ -207,6 +207,11 @@ border-radius: 3px; } +minimap_view +{ + selection-background-color: #ddca97; +} + QComboBox:editable { background-color: #ddca97; } Modified: trunk/data/themes/gui-qt/Necrophos/resource.qss URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/themes/gui-qt/Necrophos/resource.qss?rev=34185&r1=34184&r2=34185&view=diff ============================================================================== --- trunk/data/themes/gui-qt/Necrophos/resource.qss (original) +++ trunk/data/themes/gui-qt/Necrophos/resource.qss Thu Oct 20 09:44:18 2016 @@ -209,6 +209,11 @@ background-color: #29aa22; } +minimap_view +{ + selection-background-color: #006633; +} + QComboBox QAbstractItemView { color: black; background: #fefefe; Modified: trunk/data/themes/gui-qt/NightStalker/resource.qss URL: http://svn.gna.org/viewcvs/freeciv/trunk/data/themes/gui-qt/NightStalker/resource.qss?rev=34185&r1=34184&r2=34185&view=diff ============================================================================== --- trunk/data/themes/gui-qt/NightStalker/resource.qss (original) +++ trunk/data/themes/gui-qt/NightStalker/resource.qss Thu Oct 20 09:44:18 2016 @@ -228,6 +228,11 @@ background-color: rgba(55, 55, 54, 255); border: 2px solid grey; border-radius: 9px; +} + +minimap_view +{ + selection-background-color: #1155BB; } QComboBox QAbstractItemView { _______________________________________________ Freeciv-commits mailing list Freeciv-commits@gna.org https://mail.gna.org/listinfo/freeciv-commits