Delete high contrast color scheme

This color scheme is a misnomer, and does not actually offer higher
contrast than other color schemes. In fact its contrast is generally
worse. As a result it hurts more than it helps. A true "high contrast
mode" would require changes to the QStyle to make UI elements larger or
change their borders to actually offer an improvement for people who
need higher contrast than what is offered by Breeze and Breeze Dark.

Accordingly, let's delete this color scheme and migrate current users to
Breeze Dark, which is the shipped theme that looks closest to it, and
has *better* contrast in many ways.

BUG: 352506
BUG: 442286
FIXED-IN: 5.24
wilder-5.24
Nate Graham 5 years ago
parent a348854c91
commit bb70d9c5a6
  1. 158
      colors/BreezeHighContrast.colors
  2. 2
      colors/CMakeLists.txt
  3. 1
      misc/CMakeLists.txt
  4. 8
      misc/breezehighcontrasttobreezedark/CMakeLists.txt
  5. 3
      misc/breezehighcontrasttobreezedark/breezehighcontrasttobreezedark.upd
  6. 23
      misc/breezehighcontrasttobreezedark/main.cpp

@ -1,158 +0,0 @@
[ColorEffects:Disabled]
Color=56,56,56
ColorAmount=0
ColorEffect=0
ContrastAmount=0.65
ContrastEffect=1
IntensityAmount=0.1
IntensityEffect=2
[ColorEffects:Inactive]
ChangeSelectionColor=true
Color=112,111,110
ColorAmount=0.025
ColorEffect=2
ContrastAmount=0.1
ContrastEffect=2
Enable=false
IntensityAmount=0
IntensityEffect=0
[Colors:Button]
BackgroundAlternate=189,195,199
BackgroundNormal=77,77,77
DecorationFocus=29,153,243
DecorationHover=77,77,77
ForegroundActive=61,174,233
ForegroundInactive=127,140,141
ForegroundLink=41,128,185
ForegroundNegative=176,55,69
ForegroundNeutral=198,92,0
ForegroundNormal=252,252,252
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141
[Colors:Selection]
BackgroundAlternate=29,153,243
BackgroundNormal=52,73,94
DecorationFocus=29,153,243
DecorationHover=77,77,77
ForegroundActive=252,252,252
ForegroundInactive=252,252,252
ForegroundLink=253,188,75
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=239,240,241
ForegroundPositive=23,104,57
ForegroundVisited=189,195,199
[Colors:Tooltip]
BackgroundAlternate=77,77,77
BackgroundNormal=29,153,243
DecorationFocus=29,153,243
DecorationHover=77,77,77
ForegroundActive=61,174,233
ForegroundInactive=127,140,141
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=252,252,252
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141
[Colors:View]
BackgroundAlternate=41,44,48
BackgroundNormal=35,38,41
DecorationFocus=29,153,243
DecorationHover=77,77,77
ForegroundActive=61,174,233
ForegroundInactive=127,140,141
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=252,252,252
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141
[Colors:Window]
BackgroundAlternate=189,195,199
BackgroundNormal=49,54,59
DecorationFocus=29,153,243
DecorationHover=77,77,77
ForegroundActive=61,174,233
ForegroundInactive=127,140,141
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=252,252,252
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141
[Colors:Complementary]
BackgroundAlternate=41,44,48
BackgroundNormal=35,38,41
DecorationFocus=29,153,243
DecorationHover=77,77,77
ForegroundActive=61,174,233
ForegroundInactive=127,140,141
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=252,252,252
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141
[General]
ColorScheme=BreezeHighContrast
Name=Breeze High Contrast
Name[ar]=نسيم عالي التباين
Name[az]=Breeze - Yüksək Kontrastlı
Name[ca]=Brisa de contrast alt
Name[ca@valencia]=Brisa de contrast alt
Name[cs]=Breeze - Vysoký kontrast
Name[da]=Breeze højkontrast
Name[de]=Breeze Hoher Kontrast
Name[el]=Breeze υψηλής αντίθεσης
Name[en_GB]=Breeze High Contrast
Name[es]=Brisa de alto contraste
Name[et]=Breeze suure kontrastiga
Name[eu]=Breeze kontraste handikoa
Name[fi]=Suurikontrastinen Breeze
Name[fr]=Brise contraste élevé
Name[gl]=Breeze de alto contraste
Name[hi]=ब उचच वयति
Name[hu]=Breeze High Contrast
Name[ia]=Brisa Alte contrasto
Name[id]=Breeze High Contrast
Name[it]=Brezza alto contrasto
Name[ja]=Breeze ハイコントラスト
Name[ko]=Breeze 고대비
Name[lt]=Breeze didelio kontrasto
Name[nl]=Breeze met hoog contrast
Name[nn]=Breeze høgkontrast
Name[pa]=ਬਰਧ ਕਨਟਰਸਟ
Name[pl]=Wysoko-kontrastowa Bryza
Name[pt]=Brisa de Alto Contraste
Name[pt_BR]=Breeze Alto Contraste
Name[ro]=Briză, contrast sporit
Name[ru]=Breeze, высококонтрастный вариант
Name[sk]=Vánok - vysoký kontrast
Name[sl]=Sapica z visokim kontrastom
Name[sv]=Breeze hög kontrast
Name[tg]=Насим бо контрасти баланд
Name[uk]=Висококонтрастна Breeze
Name[x-test]=xxBreeze High Contrastxx
Name[zh_CN]=Breeze 微风高对比度
Name[zh_TW]=Breeze 高對比
shadeSortColumn=true
[KDE]
contrast=9
[WM]
activeBackground=29,153,243
activeBlend=29,153,243
activeForeground=252,252,252
inactiveBackground=49,54,59
inactiveBlend=26,188,156
inactiveForeground=252,252,252

@ -2,7 +2,5 @@ install(FILES Breeze.colors
DESTINATION ${KDE_INSTALL_DATADIR}/color-schemes/)
install(FILES BreezeDark.colors
DESTINATION ${KDE_INSTALL_DATADIR}/color-schemes/)
install(FILES BreezeHighContrast.colors
DESTINATION ${KDE_INSTALL_DATADIR}/color-schemes/)
install(FILES BreezeLight.colors
DESTINATION ${KDE_INSTALL_DATADIR}/color-schemes/)

@ -1,3 +1,4 @@
add_subdirectory(qtcurvepreset)
add_subdirectory(kde4breeze)
add_subdirectory(breezetobreezelight)
add_subdirectory(breezehighcontrasttobreezedark)

@ -0,0 +1,8 @@
find_package(KF5ConfigWidgets ${KF5_MIN_VERSION} REQUIRED)
add_executable(breezehighcontrasttobreezedark main.cpp)
target_link_libraries(breezehighcontrasttobreezedark KF5::ConfigWidgets)
install(TARGETS breezehighcontrasttobreezedark DESTINATION ${KDE_INSTALL_LIBDIR}/kconf_update_bin/)
install(FILES breezehighcontrasttobreezedark.upd DESTINATION ${KDE_INSTALL_KCONFUPDATEDIR})

@ -0,0 +1,3 @@
Version=5
Id=BreezeHighContrastToBreezeDark
Script=breezehighcontrasttobreezedark

@ -0,0 +1,23 @@
#include <KColorScheme>
#include <KConfig>
#include <KConfigGroup>
#include <QDebug>
int main()
{
KConfig globals("kdeglobals");
KConfigGroup general(&globals, "General");
if (general.readEntry("ColorScheme") != QLatin1String("BreezeHighContrast")) {
return 0;
}
QString breezeDarkPath = QStandardPaths::locate(QStandardPaths::GenericDataLocation, QStringLiteral("color-schemes/BreezeDark.colors"));
if (breezeDarkPath.isEmpty()) {
return 0;
}
KConfig breezeDark(breezeDarkPath, KConfig::SimpleConfig);
for (const auto &group : breezeDark.groupList()) {
auto destination = KConfigGroup(&globals, group);
KConfigGroup(&breezeDark, group).copyTo(&destination, KConfig::Notify);
}
}
Loading…
Cancel
Save