From 97d7e35d644ce1100b59c6a929df71e3cefa2686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ruiz=20de=20Alegr=C3=ADa?= Date: Sun, 12 Feb 2023 11:40:58 +0100 Subject: [PATCH] Add Kali Purple themes for KDE Plasma --- debian/kali-themes-purple.postinst | 15 --- etc-purple/xdg/xdg-kali-purple/kdeglobals | 22 ++-- share/color-schemes/KaliPurpleDark.colors | 105 ++++++++++++++++++ share/color-schemes/KaliPurpleLight.colors | 105 ++++++++++++++++++ .../desktoptheme/kali-purple/metadata.desktop | 29 +++++ .../Kali-Purple-Dark/contents/defaults | 12 ++ .../Kali-Purple-Dark/metadata.desktop | 13 +++ .../Kali-Purple-Light/contents/defaults | 12 ++ .../Kali-Purple-Light/metadata.desktop | 12 ++ 9 files changed, 299 insertions(+), 26 deletions(-) delete mode 100644 debian/kali-themes-purple.postinst create mode 100644 share/color-schemes/KaliPurpleDark.colors create mode 100644 share/color-schemes/KaliPurpleLight.colors create mode 100644 share/plasma/desktoptheme/kali-purple/metadata.desktop create mode 100644 share/plasma/look-and-feel/Kali-Purple-Dark/contents/defaults create mode 100644 share/plasma/look-and-feel/Kali-Purple-Dark/metadata.desktop create mode 100644 share/plasma/look-and-feel/Kali-Purple-Light/contents/defaults create mode 100644 share/plasma/look-and-feel/Kali-Purple-Light/metadata.desktop diff --git a/debian/kali-themes-purple.postinst b/debian/kali-themes-purple.postinst deleted file mode 100644 index ea4d6f07..00000000 --- a/debian/kali-themes-purple.postinst +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh - -comment="Wallpaper for Kali Purple theme" - -if ! grep -q "${comment}" /usr/share/plasma/desktoptheme/kali/metadata.desktop; then - cat >> /usr/share/plasma/desktoptheme/kali/metadata.desktop <<- EOF - # $comment - [Wallpaper] - defaultWallpaperTheme=KaliPurple - defaultWidth=3840 - defaultHeight=2160 - EOF -fi - -#DEBHELPER# diff --git a/etc-purple/xdg/xdg-kali-purple/kdeglobals b/etc-purple/xdg/xdg-kali-purple/kdeglobals index b8a5a135..03cd16d0 100644 --- a/etc-purple/xdg/xdg-kali-purple/kdeglobals +++ b/etc-purple/xdg/xdg-kali-purple/kdeglobals @@ -19,8 +19,8 @@ IntensityAmount=0 IntensityEffect=0 [Colors:Button] -BackgroundAlternate=35,37,46 -BackgroundNormal=35, 37, 46 +BackgroundAlternate=246,246,246 +BackgroundNormal=255,255,255 DecorationFocus=164,0,164 DecorationHover=164,0,164 ForegroundActive=74,174,230 @@ -28,7 +28,7 @@ ForegroundInactive=92,98,108 ForegroundLink=164,0,164 ForegroundNegative=212,25,25 ForegroundNeutral=253,125,0 -ForegroundNormal=255,255,255 +ForegroundNormal=0,0,0 ForegroundPositive=25,161,135 ForegroundVisited=92,98,108 @@ -48,7 +48,7 @@ ForegroundVisited=204,204,204 [Colors:Tooltip] BackgroundAlternate=51,51,51 -BackgroundNormal=35, 37, 46 +BackgroundNormal=39,42,52 DecorationFocus=164,0,164 DecorationHover=43,98,192 ForegroundActive=74,174,230 @@ -61,8 +61,8 @@ ForegroundPositive=25,161,135 ForegroundVisited=92,98,108 [Colors:View] -BackgroundAlternate=35,37,46 -BackgroundNormal=35, 37, 46 +BackgroundAlternate=246,246,246 +BackgroundNormal=255,255,255 DecorationFocus=164,0,164 DecorationHover=164,0,164 ForegroundActive=74,174,230 @@ -70,13 +70,13 @@ ForegroundInactive=92,98,108 ForegroundLink=164,0,164 ForegroundNegative=212,25,25 ForegroundNeutral=253,125,0 -ForegroundNormal=255,255,255 +ForegroundNormal=0,0,0 ForegroundPositive=25,161,135 ForegroundVisited=92,98,108 [Colors:Window] -BackgroundAlternate=35,37,46 -BackgroundNormal=35, 37, 46 +BackgroundAlternate=246,246,246 +BackgroundNormal=255,255,255 DecorationFocus=164,0,164 DecorationHover=164,0,164 ForegroundActive=74,174,230 @@ -84,7 +84,7 @@ ForegroundInactive=92,98,108 ForegroundLink=164,0,164 ForegroundNegative=212,25,25 ForegroundNeutral=253,125,0 -ForegroundNormal=255,255,255 +ForegroundNormal=0,0,0 ForegroundPositive=25,161,135 ForegroundVisited=92,98,108 @@ -98,7 +98,7 @@ widgetStyle=Breeze Theme=Flat-Remix-Purple-Light [KDE] -LookAndFeelPackage=Kali-Light +LookAndFeelPackage=Kali-Purple-Light contrast=4 widgetStyle=Breeze diff --git a/share/color-schemes/KaliPurpleDark.colors b/share/color-schemes/KaliPurpleDark.colors new file mode 100644 index 00000000..f2c88606 --- /dev/null +++ b/share/color-schemes/KaliPurpleDark.colors @@ -0,0 +1,105 @@ +[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=35,37,46 +BackgroundNormal=35, 37, 46 +DecorationFocus=164,0,164 +DecorationHover=164,0,164 +ForegroundActive=74,174,230 +ForegroundInactive=92,98,108 +ForegroundLink=164,0,164 +ForegroundNegative=212,25,25 +ForegroundNeutral=253,125,0 +ForegroundNormal=255,255,255 +ForegroundPositive=25,161,135 +ForegroundVisited=92,98,108 + +[Colors:Selection] +BackgroundAlternate=43,98,192 +BackgroundNormal=164,0,164 +DecorationFocus=38,86,168 +DecorationHover=38,86,168 +ForegroundActive=255,255,255 +ForegroundInactive=255,255,255 +ForegroundLink=255,216,110 +ForegroundNegative=191,23,23 +ForegroundNeutral=253,125,0 +ForegroundNormal=255,255,255 +ForegroundPositive=94,189,171 +ForegroundVisited=204,204,204 + +[Colors:Tooltip] +BackgroundAlternate=51,51,51 +BackgroundNormal=35, 37, 46 +DecorationFocus=164,0,164 +DecorationHover=43,98,192 +ForegroundActive=74,174,230 +ForegroundInactive=92,98,108 +ForegroundLink=164,0,164 +ForegroundNegative=212,25,25 +ForegroundNeutral=253,125,0 +ForegroundNormal=255,255,255 +ForegroundPositive=25,161,135 +ForegroundVisited=92,98,108 + +[Colors:View] +BackgroundAlternate=35,37,46 +BackgroundNormal=35, 37, 46 +DecorationFocus=164,0,164 +DecorationHover=164,0,164 +ForegroundActive=74,174,230 +ForegroundInactive=92,98,108 +ForegroundLink=164,0,164 +ForegroundNegative=212,25,25 +ForegroundNeutral=253,125,0 +ForegroundNormal=255,255,255 +ForegroundPositive=25,161,135 +ForegroundVisited=92,98,108 + +[Colors:Window] +BackgroundAlternate=35,37,46 +BackgroundNormal=35, 37, 46 +DecorationFocus=164,0,164 +DecorationHover=164,0,164 +ForegroundActive=74,174,230 +ForegroundInactive=92,98,108 +ForegroundLink=164,0,164 +ForegroundNegative=212,25,25 +ForegroundNeutral=253,125,0 +ForegroundNormal=255,255,255 +ForegroundPositive=25,161,135 +ForegroundVisited=92,98,108 + +[General] +ColorScheme=Kali-Dark +Name=Kali-Dark +shadeSortColumn=true + +[KDE] +contrast=4 + +[WM] +activeBackground=35, 37, 46 +activeBlend=35, 37, 46 +activeForeground=255,255,255 +inactiveBackground=35, 37, 46 +inactiveBlend=35, 37, 46 +inactiveForeground=120,120,120 diff --git a/share/color-schemes/KaliPurpleLight.colors b/share/color-schemes/KaliPurpleLight.colors new file mode 100644 index 00000000..affe7358 --- /dev/null +++ b/share/color-schemes/KaliPurpleLight.colors @@ -0,0 +1,105 @@ +[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=246,246,246 +BackgroundNormal=255,255,255 +DecorationFocus=164,0,164 +DecorationHover=164,0,164 +ForegroundActive=74,174,230 +ForegroundInactive=92,98,108 +ForegroundLink=164,0,164 +ForegroundNegative=212,25,25 +ForegroundNeutral=253,125,0 +ForegroundNormal=0,0,0 +ForegroundPositive=25,161,135 +ForegroundVisited=92,98,108 + +[Colors:Selection] +BackgroundAlternate=43,98,192 +BackgroundNormal=164,0,164 +DecorationFocus=38,86,168 +DecorationHover=38,86,168 +ForegroundActive=255,255,255 +ForegroundInactive=255,255,255 +ForegroundLink=255,216,110 +ForegroundNegative=191,23,23 +ForegroundNeutral=253,125,0 +ForegroundNormal=255,255,255 +ForegroundPositive=94,189,171 +ForegroundVisited=204,204,204 + +[Colors:Tooltip] +BackgroundAlternate=51,51,51 +BackgroundNormal=39,42,52 +DecorationFocus=164,0,164 +DecorationHover=43,98,192 +ForegroundActive=74,174,230 +ForegroundInactive=92,98,108 +ForegroundLink=164,0,164 +ForegroundNegative=212,25,25 +ForegroundNeutral=253,125,0 +ForegroundNormal=255,255,255 +ForegroundPositive=25,161,135 +ForegroundVisited=92,98,108 + +[Colors:View] +BackgroundAlternate=246,246,246 +BackgroundNormal=255,255,255 +DecorationFocus=164,0,164 +DecorationHover=164,0,164 +ForegroundActive=74,174,230 +ForegroundInactive=92,98,108 +ForegroundLink=164,0,164 +ForegroundNegative=212,25,25 +ForegroundNeutral=253,125,0 +ForegroundNormal=0,0,0 +ForegroundPositive=25,161,135 +ForegroundVisited=92,98,108 + +[Colors:Window] +BackgroundAlternate=246,246,246 +BackgroundNormal=255,255,255 +DecorationFocus=164,0,164 +DecorationHover=164,0,164 +ForegroundActive=74,174,230 +ForegroundInactive=92,98,108 +ForegroundLink=164,0,164 +ForegroundNegative=212,25,25 +ForegroundNeutral=253,125,0 +ForegroundNormal=0,0,0 +ForegroundPositive=25,161,135 +ForegroundVisited=92,98,108 + +[General] +ColorScheme=Kali-Light +Name=Kali-Light +shadeSortColumn=true + +[KDE] +contrast=4 + +[WM] +activeBackground=255,255,255 +activeBlend=255,255,255 +activeForeground=0,0,0 +inactiveBackground=255,255,255 +inactiveBlend=255,255,255 +inactiveForeground=120,120,120 diff --git a/share/plasma/desktoptheme/kali-purple/metadata.desktop b/share/plasma/desktoptheme/kali-purple/metadata.desktop new file mode 100644 index 00000000..66bd8c2d --- /dev/null +++ b/share/plasma/desktoptheme/kali-purple/metadata.desktop @@ -0,0 +1,29 @@ +[Desktop Entry] +Name=Kali Purple +Comment=Kali Purple Plasma Theme + +X-KDE-PluginInfo-Author=Kali Devel Team +X-KDE-PluginInfo-Email=devel@kali.org +X-KDE-PluginInfo-Name=Kali Purple +X-KDE-PluginInfo-Version=1.0 +X-KDE-PluginInfo-Website=https://kali.org +X-KDE-PluginInfo-Category= +X-KDE-PluginInfo-Depends= +X-KDE-PluginInfo-License=GPL-3.0+ +X-KDE-PluginInfo-EnabledByDefault=true +X-Plasma-API=5.0 + +[Settings] +FallbackTheme=Kali + +[Wallpaper] +defaultWallpaperTheme=KaliPurple +defaultWidth=3840 +defaultHeight=2160 + +[ContrastEffect] +enabled=true +contrast=0.2 +#intensity is disabled, in order to auto adjust to the chosen theme color +#intensity=2.0 +saturation=1.7 diff --git a/share/plasma/look-and-feel/Kali-Purple-Dark/contents/defaults b/share/plasma/look-and-feel/Kali-Purple-Dark/contents/defaults new file mode 100644 index 00000000..3292e9d5 --- /dev/null +++ b/share/plasma/look-and-feel/Kali-Purple-Dark/contents/defaults @@ -0,0 +1,12 @@ +[kdeglobals][General] +ColorScheme=KaliPurpleDark + +[kwinrc][org.kde.kdecoration2] +library=org.kali.kali +theme=Kali + +[kdeglobals][Icons] +Theme=Flat-Remix-Purple-Dark + +[plasmarc][Theme] +name=kali-purple diff --git a/share/plasma/look-and-feel/Kali-Purple-Dark/metadata.desktop b/share/plasma/look-and-feel/Kali-Purple-Dark/metadata.desktop new file mode 100644 index 00000000..79464429 --- /dev/null +++ b/share/plasma/look-and-feel/Kali-Purple-Dark/metadata.desktop @@ -0,0 +1,13 @@ +[Desktop Entry] +Comment=Kali-Purple-Dark +Name=Kali-Purple-Dark +X-KDE-PluginInfo-Author=Kali Devel Team +X-KDE-PluginInfo-Category=Plasma Look And Feel +X-KDE-PluginInfo-Email=devel@kali.org +X-KDE-PluginInfo-EnabledByDefault=true +X-KDE-PluginInfo-License=GPL-3.0+ +X-KDE-PluginInfo-Name=Kali-Purple-Dark +X-KDE-PluginInfo-Version=1.0 +X-KDE-PluginInfo-Website=https://kali.org +X-KDE-ServiceTypes=Plasma/LookAndFeel + diff --git a/share/plasma/look-and-feel/Kali-Purple-Light/contents/defaults b/share/plasma/look-and-feel/Kali-Purple-Light/contents/defaults new file mode 100644 index 00000000..42bca6c0 --- /dev/null +++ b/share/plasma/look-and-feel/Kali-Purple-Light/contents/defaults @@ -0,0 +1,12 @@ +[kdeglobals][General] +ColorScheme=KaliPurpleLight + +[kwinrc][org.kde.kdecoration2] +library=org.kali.kali +theme=Kali + +[kdeglobals][Icons] +Theme=Flat-Remix-Purple-Light + +[plasmarc][Theme] +name=kali-purple diff --git a/share/plasma/look-and-feel/Kali-Purple-Light/metadata.desktop b/share/plasma/look-and-feel/Kali-Purple-Light/metadata.desktop new file mode 100644 index 00000000..a2c84225 --- /dev/null +++ b/share/plasma/look-and-feel/Kali-Purple-Light/metadata.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Comment=Kali-Purple-Light +Name=Kali-Purple-Light +X-KDE-PluginInfo-Author=Kali Devel Team +X-KDE-PluginInfo-Category=Plasma Look And Feel +X-KDE-PluginInfo-Email=devel@kali.org +X-KDE-PluginInfo-EnabledByDefault=true +X-KDE-PluginInfo-License=GPL-3.0+ +X-KDE-PluginInfo-Name=Kali-Purple-Light +X-KDE-PluginInfo-Version=1.0 +X-KDE-PluginInfo-Website=https://kali.org +X-KDE-ServiceTypes=Plasma/LookAndFeel