Author: mir3x
Date: Thu Oct 20 09:44:01 2016
New Revision: 34184

URL: http://svn.gna.org/viewcvs/freeciv?rev=34184&view=rev
Log:
Qt client - control overview border color from theme

See patch #7849

Modified:
    branches/S2_6/client/gui-qt/mapview.cpp
    branches/S2_6/data/themes/gui-qt/Classic/resource.qss
    branches/S2_6/data/themes/gui-qt/Necrophos/resource.qss
    branches/S2_6/data/themes/gui-qt/NightStalker/resource.qss

Modified: branches/S2_6/client/gui-qt/mapview.cpp
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/client/gui-qt/mapview.cpp?rev=34184&r1=34183&r2=34184&view=diff
==============================================================================
--- branches/S2_6/client/gui-qt/mapview.cpp     (original)
+++ branches/S2_6/client/gui-qt/mapview.cpp     Thu Oct 20 09:44:01 2016
@@ -773,8 +773,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: branches/S2_6/data/themes/gui-qt/Classic/resource.qss
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/data/themes/gui-qt/Classic/resource.qss?rev=34184&r1=34183&r2=34184&view=diff
==============================================================================
--- branches/S2_6/data/themes/gui-qt/Classic/resource.qss       (original)
+++ branches/S2_6/data/themes/gui-qt/Classic/resource.qss       Thu Oct 20 
09:44:01 2016
@@ -207,6 +207,11 @@
   border-radius: 3px;
 }
 
+minimap_view
+{
+  selection-background-color: #ddca97;
+}
+
 QComboBox:editable {
   background-color: #ddca97;
 }

Modified: branches/S2_6/data/themes/gui-qt/Necrophos/resource.qss
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/data/themes/gui-qt/Necrophos/resource.qss?rev=34184&r1=34183&r2=34184&view=diff
==============================================================================
--- branches/S2_6/data/themes/gui-qt/Necrophos/resource.qss     (original)
+++ branches/S2_6/data/themes/gui-qt/Necrophos/resource.qss     Thu Oct 20 
09:44:01 2016
@@ -209,6 +209,11 @@
   background-color: #29aa22;
 }
 
+minimap_view
+{
+  selection-background-color: #006633;
+}
+
 QComboBox QAbstractItemView {
   color: black;
   background: #fefefe;

Modified: branches/S2_6/data/themes/gui-qt/NightStalker/resource.qss
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_6/data/themes/gui-qt/NightStalker/resource.qss?rev=34184&r1=34183&r2=34184&view=diff
==============================================================================
--- branches/S2_6/data/themes/gui-qt/NightStalker/resource.qss  (original)
+++ branches/S2_6/data/themes/gui-qt/NightStalker/resource.qss  Thu Oct 20 
09:44:01 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

Reply via email to