From 01ea4fa7a6b9213f314b84e443d293a13816f1d5 Mon Sep 17 00:00:00 2001 From: Khopa Date: Thu, 13 Aug 2020 16:53:56 +0200 Subject: [PATCH] Fixed big performance issues in release executable. --- changelog.md | 1 + resources/stylesheets/style-dcs.css | 10 ---------- resources/stylesheets/style.css | 11 ----------- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/changelog.md b/changelog.md index 57ab980d..ba5130df 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,7 @@ ## Fixed issues : **[Units/Factions]** Fixed OH-58D not being used by AI +**[Units/Factions]** Fixed big performance issue in new release UI that occurred only when running the .exe # 2.0.10 diff --git a/resources/stylesheets/style-dcs.css b/resources/stylesheets/style-dcs.css index fb41fa21..47a8bee3 100644 --- a/resources/stylesheets/style-dcs.css +++ b/resources/stylesheets/style-dcs.css @@ -85,13 +85,11 @@ QPushButton { border: 1px solid #97A9A9; color:#fff; padding: 6px 10px; - cursor: pointer; border-radius:2px; } QPushButton:hover { background: #6c7b7f; - cursor:pointer; } /*btn-primary*/ @@ -101,7 +99,6 @@ QPushButton[style="btn-primary"]{ color:#fff; padding: 6px; border-radius:2px; - cursor: pointer; font-weight:bold; text-transform:uppercase; } @@ -114,7 +111,6 @@ QPushButton[style="btn-primary"]:hover{ QPushButton[style="btn-success"] , QPushButton[style="start-button"]{ background-color:#82A466; color: white; - cursor:pointer; border-radius:2px; font-weight:bold; text-transform:uppercase; @@ -134,7 +130,6 @@ QPushButton[style="btn-success"]:hover , QPushButton[style="start-button"]:hover QPushButton[style="btn-buy"]{ background-color:#82A466; color: white; - cursor:pointer; border-radius:2px; font-weight:bold; text-transform:uppercase; @@ -143,7 +138,6 @@ QPushButton[style="btn-buy"]{ } QPushButton[style="btn-buy"]:hover{ - cursor:pointer; background:#5C863F; } @@ -151,7 +145,6 @@ QPushButton[style="btn-buy"]:hover{ QPushButton[style="btn-sell"]{ background-color:#9E3232; color: white; - cursor:pointer; border-radius:2px; font-weight:bold; text-transform:uppercase; @@ -160,7 +153,6 @@ QPushButton[style="btn-sell"]{ } QPushButton[style="btn-sell"]:hover{ - cursor:pointer; background:#D84545; } @@ -169,7 +161,6 @@ QPushButton[style="btn-sell"]:hover{ QPushButton[style="btn-danger"]{ background-color:#9E3232; color: white; - cursor:pointer; padding: 6px; border-radius:2px; border: 1px solid #9E3232; @@ -191,7 +182,6 @@ QLabel{ QLabel[style="base-title"]{ font-size: 24px; - font-color: #ccc; } QLabel[style="icon-plane"]{ diff --git a/resources/stylesheets/style.css b/resources/stylesheets/style.css index 7a6f74cf..a8b65845 100644 --- a/resources/stylesheets/style.css +++ b/resources/stylesheets/style.css @@ -26,7 +26,6 @@ QTopPanel *{ QPushButton[style="btn-success"]{ background-color:#699245; color: white; - cursor:pointer; padding: 5px 5px 5px 5px; border-radius:5px; } @@ -35,13 +34,11 @@ QPushButton[style="btn-success"]:hover{ background-color:#8ABC5A; padding: 5px 5px 5px 5px; border-radius:5px; - cursor: pointer; } QPushButton[style="start-button"]{ background-color:#699245; color: white; - cursor:pointer; padding: 5px 5px 5px 5px; border-radius:5px; } @@ -50,14 +47,12 @@ QPushButton[style="start-button"]:hover{ background-color:#8ABC5A; padding: 15px 15px 15px 15px; border-radius:5px; - cursor: pointer; } /* Buy button */ QPushButton[style="btn-buy"]{ background-color:#82A466; color: white; - cursor:pointer; border-radius:2px; font-weight:bold; text-transform:uppercase; @@ -66,7 +61,6 @@ QPushButton[style="btn-buy"]{ } QPushButton[style="btn-buy"]:hover{ - cursor:pointer; background:#5C863F; } @@ -74,7 +68,6 @@ QPushButton[style="btn-buy"]:hover{ QPushButton[style="btn-sell"]{ background-color:#9E3232; color: white; - cursor:pointer; border-radius:2px; font-weight:bold; text-transform:uppercase; @@ -83,14 +76,12 @@ QPushButton[style="btn-sell"]{ } QPushButton[style="btn-sell"]:hover{ - cursor:pointer; background:#D84545; } QPushButton[style="btn-danger"]{ background-color:#9E3232; color: white; - cursor:pointer; padding: 5px 5px 5px 5px; border-radius:5px; } @@ -99,12 +90,10 @@ QPushButton[style="btn-danger"]:hover{ background-color:#D84545; padding: 5px 5px 5px 5px; border-radius:5px; - cursor: pointer; } QLabel[style="base-title"]{ font-size: 24px; - font-color: #ccc; border: 1px solid #ccc; }