diff --git a/colors/BreezeHighContrast.colors b/colors/BreezeHighContrast.colors deleted file mode 100644 index 7ac09a2e..00000000 --- a/colors/BreezeHighContrast.colors +++ /dev/null @@ -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 diff --git a/colors/CMakeLists.txt b/colors/CMakeLists.txt index d56a8047..1c20880e 100644 --- a/colors/CMakeLists.txt +++ b/colors/CMakeLists.txt @@ -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/) diff --git a/misc/CMakeLists.txt b/misc/CMakeLists.txt index 89df341d..566d76db 100644 --- a/misc/CMakeLists.txt +++ b/misc/CMakeLists.txt @@ -1,3 +1,4 @@ add_subdirectory(qtcurvepreset) add_subdirectory(kde4breeze) add_subdirectory(breezetobreezelight) +add_subdirectory(breezehighcontrasttobreezedark) diff --git a/misc/breezehighcontrasttobreezedark/CMakeLists.txt b/misc/breezehighcontrasttobreezedark/CMakeLists.txt new file mode 100644 index 00000000..731789cf --- /dev/null +++ b/misc/breezehighcontrasttobreezedark/CMakeLists.txt @@ -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}) diff --git a/misc/breezehighcontrasttobreezedark/breezehighcontrasttobreezedark.upd b/misc/breezehighcontrasttobreezedark/breezehighcontrasttobreezedark.upd new file mode 100644 index 00000000..6f1cd9e0 --- /dev/null +++ b/misc/breezehighcontrasttobreezedark/breezehighcontrasttobreezedark.upd @@ -0,0 +1,3 @@ +Version=5 +Id=BreezeHighContrastToBreezeDark +Script=breezehighcontrasttobreezedark diff --git a/misc/breezehighcontrasttobreezedark/main.cpp b/misc/breezehighcontrasttobreezedark/main.cpp new file mode 100644 index 00000000..e0730c65 --- /dev/null +++ b/misc/breezehighcontrasttobreezedark/main.cpp @@ -0,0 +1,23 @@ +#include +#include +#include + +#include + +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); + } +}