Add improved cursor theme

This commit is contained in:
wackyideas 2024-02-02 23:59:38 +01:00
parent b2c3f52161
commit b9c1dc0fcc
16 changed files with 30 additions and 45 deletions

View file

@ -67,7 +67,7 @@ This is a list of components that are included in this project, as well as their
|Name |Description |Finished|Fork| |Name |Description |Finished|Fork|
|------------------|------------------------------------------------------------------------------------------------------------------|--------|----| |------------------|------------------------------------------------------------------------------------------------------------------|--------|----|
|Aero cursors |Cursor pack for KDE. Currently only has the small size (96 DPI). |N |[Moony](https://store.kde.org/p/999972/)| |Aero cursors |Cursor pack for KDE. Currently supports resolutions 32 and 48. |N |[Souris-2d07](https://gitgud.io/souris)|
|SevenBlack |Windows 7 theme for KDE Plasma. |N |[Mirko Gennari](https://kde-look.org/p/998614),<br> [DrGordBord](https://store.kde.org/p/1722560/),<br> [bionegative](https://www.pling.com/p/998823)| |SevenBlack |Windows 7 theme for KDE Plasma. |N |[Mirko Gennari](https://kde-look.org/p/998614),<br> [DrGordBord](https://store.kde.org/p/1722560/),<br> [bionegative](https://www.pling.com/p/998823)|
|Sound collection |Sounds taken from Windows 7 directly. |Y |Microsoft| |Sound collection |Sounds taken from Windows 7 directly. |Y |Microsoft|
|VistaVG Wine theme|Msstyle used for theming Wine applications. |Y |[Vishal Gupta](https://www.deviantart.com/vishal-gupta/art/VistaVG-Ultimate-57715902)| |VistaVG Wine theme|Msstyle used for theming Wine applications. |Y |[Vishal Gupta](https://www.deviantart.com/vishal-gupta/art/VistaVG-Ultimate-57715902)|

View file

@ -32,11 +32,6 @@ The following software is required for this project:
- extra-cmake-modules - extra-cmake-modules
- [Scale Minimize Animation](https://store.kde.org/p/1267839) (Can be installed through System Settings) - [Scale Minimize Animation](https://store.kde.org/p/1267839) (Can be installed through System Settings)
Optional programs:
- KMix, for a volume menu that looks more like Windows 7. For Pipewire users it might be better to just use the default volume plasmoid KDE provides.
- Some program to change the GTK2 theme, like ```gtk-chtheme```, if applying the GTK2 theme.
On Debian and Debian-based distributions (Ubuntu, Mint, etc.), the following apt packages are required: On Debian and Debian-based distributions (Ubuntu, Mint, etc.), the following apt packages are required:
``` ```
@ -136,52 +131,29 @@ To apply it, go to ```System Settings -> Appearance -> Plasma Style``` to find i
### Icons and Cursors <a name="icons"></a> ### Icons and Cursors <a name="icons"></a>
The icon theme is ```windowsicon```, while ```aero-cursors``` is the cursor theme. Extract the tar archives and move the folders in the following directory: The icon theme is ```windowsicon```, while ```aero-drop``` is the cursor theme. Extract the tar archives and move the icon theme into the following directory:
``` ```
$ ~/.local/share/icons/ $ ~/.local/share/icons/
``` ```
To apply them, go to ```System Settings -> Appearance -> Icons``` and ```System Settings -> Appearance -> Cursors``` respectively to select them. To apply the icon theme, go to ```System Settings -> Appearance -> Icons``` and select the theme.
It is also strongly recommended to install the [Oxygen](https://invent.kde.org/frameworks/oxygen-icons5) icon theme if it's not already installed on your system, as this project's icon theme optionally depends on it. It is also strongly recommended to install the [Oxygen](https://invent.kde.org/frameworks/oxygen-icons5) icon theme if it's not already installed on your system, as this project's icon theme optionally depends on it.
As for installing the cursor theme, apply the theme in ```System Settings -> Appearance -> Cursors```, and then follow [this](https://www.youtube.com/watch?v=Dj7co2R7RKw) video tutorial to ensure the cursor theme is applied everywhere consistently. It's important to keep in mind the following:
1. Make sure that the cursor theme is installed system-wide (it has to be in ```/usr/share/icons```), or else SDDM cannot apply the theme.
2. If SDDM fails to pick up on the cursor theme, go to ```System Settings -> Startup and Shutdown -> Login Screen (SDDM)``` and click on 'Apply Plasma Settings' to ensure SDDM is properly configured.
Consult the [Arch Wiki](https://wiki.archlinux.org/title/Cursor_themes) for more information, as setting a cursor theme on Linux is not as trivial or elegant KDE's System Settings would suggest.
### Qt Visual Style <a name="application-theme"></a> ### Qt Visual Style <a name="application-theme"></a>
Installing Kvantum requires installing the package ```kvantum``` which is available in the community repository for Arch, and is available on most other Linux distributions as well. Installing Kvantum requires installing the package ```kvantum``` which is available in the community repository for Arch, and is available on most other Linux distributions as well.
To install the GTK2 theme, locate and move the following directory:
```
$ ./Qt/Application_Theme/QGtkStyle/win27pixmap/
```
to this directory (create it if it doesn't exist):
```
$ ~/.themes/
```
Installing the Kvantum theme is simply done through Kvantum's settings. Afterwards, Kvantum can be set as the visual style in ```System Settings -> Appearance -> Application Style```. Installing the Kvantum theme is simply done through Kvantum's settings. Afterwards, Kvantum can be set as the visual style in ```System Settings -> Appearance -> Application Style```.
**Applying the GTK2 theme:**
Through a utility program like ```gtk-chtheme```, set the GTK2 theme to Win2-7. When configuring GTK2, make sure to set the font to the same font as configured in the system settings (for this theme, the default is Segoe UI, size 9).
In case the GTK2 theme isn't persistent throughout sessions, in order to keep it applied, add the following line:
```
GTK2_RC_FILES=/home/[username]/.themes/win27pixmap/gtk-2.0/gtkrc
```
in
```
# /etc/environment
```
Replace ```[username]``` with your own user name. Restart the Plasma session to see the effect.
**Installing the color scheme:** **Installing the color scheme:**
To install the color scheme, go to ```System Settings -> Appearance -> Colors``` and click "Install from file". Locate the following file and select it: To install the color scheme, go to ```System Settings -> Appearance -> Colors``` and click "Install from file". Locate the following file and select it:

Binary file not shown.

View file

@ -0,0 +1,2 @@
[icon theme]
Inherits=aero-drop

View file

@ -35,7 +35,7 @@ It is still in heavy development and testing. This project has been tested on:
- Intel integrated graphics, AMD dedicated graphics - Intel integrated graphics, AMD dedicated graphics
- 96 DPI scaling - 96 DPI scaling
Here's what's currently not supported but should be (see FAQ): Here's what's currently not supported but is planned (see FAQ):
- Multi-distro support (While this could work on other distros, and has been confirmed to run well on Arch and Ubuntu, I cannot provide help if something goes wrong) - Multi-distro support (While this could work on other distros, and has been confirmed to run well on Arch and Ubuntu, I cannot provide help if something goes wrong)
- HiDPI scaling - HiDPI scaling
@ -50,7 +50,9 @@ The following will not be supported at all in the foreseeable future:
- GTK3 - GTK3
- GTK4 - GTK4
- Wayland - Wayland*
*Based on user feedback, it seems that only the KWin effects provided in AeroThemePlasma don't work with Wayland. I have issues when running Wayland so I'm unable to debug this, but I'd be happy to accept a merge request that fixes this issue.
<h3>DISCLAIMER:</h3> <h3>DISCLAIMER:</h3>
@ -131,6 +133,10 @@ Lastly, feel free to fork this project and/or contribute to it in any way. Any a
<img src="Screenshots/Window_Decorations.png"> <img src="Screenshots/Window_Decorations.png">
### Firefox
<img src="Screenshots/Firefox.png">
## Installation <a name="installation"></a> ## Installation <a name="installation"></a>
*See [INSTALL.md](./INSTALL.md)* *See [INSTALL.md](./INSTALL.md)*

BIN
Screenshots/Firefox.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 KiB

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 298 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 267 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 380 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 92 KiB

View file

@ -23,6 +23,8 @@ USER_ICONS=${USER_LOCAL}icons/
KWIN_SWITCHER_DIR=${USER_LOCAL}kwin/tabbox/ KWIN_SWITCHER_DIR=${USER_LOCAL}kwin/tabbox/
EMERALD_PATH=~/.emerald/ EMERALD_PATH=~/.emerald/
KVANTUM_THEMES=${USER_CONFIG}Kvantum/ KVANTUM_THEMES=${USER_CONFIG}Kvantum/
CURSOR_USER=~/.icons/default/
CURSOR_SYSTEM=/usr/share/icons/
# System directories # System directories
KWIN_PLUGIN_DIR=/usr/lib/qt/plugins/org.kde.kdecoration2/ # Used for installing Smaragd KWIN_PLUGIN_DIR=/usr/lib/qt/plugins/org.kde.kdecoration2/ # Used for installing Smaragd
@ -85,7 +87,7 @@ KWIN_SWITCHER=thumbnail_seven
# Icons and cursors # Icons and cursors
ICONTHEME=windowsicon ICONTHEME=windowsicon
CURSORTHEME=aero-cursors CURSORTHEME=aero-drop
function print_help { function print_help {
printf "WARNING: This script is early in development\n" printf "WARNING: This script is early in development\n"
@ -178,7 +180,8 @@ function install {
"$COLOR_SCHEMES" \ "$COLOR_SCHEMES" \
"$USER_ICONS" \ "$USER_ICONS" \
"$USER_LOOK_AND_FEEL" \ "$USER_LOOK_AND_FEEL" \
"$KWIN_SWITCHER_DIR" "$KWIN_SWITCHER_DIR" \
"$CURSOR_USER"
echo "Installing user plasmoids..." echo "Installing user plasmoids..."
sudo mkdir -p "${PLASMOID_PLUGINS}" sudo mkdir -p "${PLASMOID_PLUGINS}"
sudo cp "${INNER_PLASMA_WIDGETS}User/${SEVEN_TASKS_PLUGIN}" "${PLASMOID_PLUGINS}" sudo cp "${INNER_PLASMA_WIDGETS}User/${SEVEN_TASKS_PLUGIN}" "${PLASMOID_PLUGINS}"
@ -194,7 +197,7 @@ function install {
"${USER_PLASMOIDS}${DESKTOP_CONTAINMENT}" "${USER_PLASMOIDS}${DESKTOP_CONTAINMENT}"
rm -rf \ rm -rf \
"${USER_ICONS}${ICONTHEME}" \ "${CURSOR_USER}" \
"${USER_ICONS}${CURSORTHEME}" \ "${USER_ICONS}${CURSORTHEME}" \
"${USER_LOOK_AND_FEEL}${SPLASH_SCREEN}" \ "${USER_LOOK_AND_FEEL}${SPLASH_SCREEN}" \
"${PLASMA_THEMES}${PLASMA_THEME}" \ "${PLASMA_THEMES}${PLASMA_THEME}" \
@ -212,7 +215,9 @@ function install {
mv "${ICONTHEME}" "${USER_ICONS}" mv "${ICONTHEME}" "${USER_ICONS}"
echo "Installing cursor theme..." echo "Installing cursor theme..."
tar -xf "${INNER_ICON_THEME}${CURSORTHEME}.tar.gz" tar -xf "${INNER_ICON_THEME}${CURSORTHEME}.tar.gz"
mv "${CURSORTHEME}" "${USER_ICONS}" sudo mv "${CURSORTHEME}" "${CURSOR_SYSTEM}"
cp "${INNER_ICON_THEME}index.theme" "${CURSOR_USER}index.theme"
ln -s "${CURSOR_SYSTEM}${CURSORTHEME}/cursors" "${CURSOR_USER}cursors"
echo "Installing Smaragd Seven..." echo "Installing Smaragd Seven..."
sudo mkdir -p "${KWIN_PLUGIN_DIR}" sudo mkdir -p "${KWIN_PLUGIN_DIR}"