Crystal

Various KDE 1.-4. Styles

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

21
6.8
Description:

This is the port of the famous Crystal kwin decoration theme to KDE 4.x.

For 3.x version see:
http://www.kde-look.org/content/show.php/Crystal?content=13969


Main features:
* Uses compositing features of KDE4 for transparency with ability to use the blur plugin
* Supports grouping/tabbing of windows
* Ability to choose the blending colors of buttons as well as title bar and border size
* Right click on minimize button toggles shade mode
* Middle click on minimize button sends window to below
* Double click on program symbol closes window
* Support for button themes. Basic button theme is included, feel free to swamp me with cool themes
* Can show a tooltip for the caption
* Right click on close button can run kdocker, if installed, to minimize the application to the system tray



-- INSTALL ---------------------
Basic Installation (from the console):
- Step 1 (as user)
$ cd build
$ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
$ make
- Step 3 (as root)
# make install

If you installed crystal while it was running, you would need to restart kwin for the changes to take effect: kwin --replace
--------------------------------

Feedback and patches well appreciated. ;-)


Follow me on GitHub!
https://github.com/shlusiak/kwin-style-crystal


This version of crystal needs KDE 4.9 or higher!



Have fun,
Sascha Hlusiak
Last changelog:

11 years ago

2.2.1 (KDE 4.9):
* Fix tabbing after window shading


2.2.0 (KDE 4.9 only):
* Use API for KDE 4.9

2.1.1 (KDE 4.8):
* Improved compatibility with KDE 4.8
* Fixed possible glitches without compositing in KDE 4.8
* Draws own shadows


2.1.0:
* Support of KDE's cool window tabbing / grouping feature!!
* Fix working with kdocker >= 4.5, if installed (right click on close button to run)
* Fix glitch of round corners in compositing mode introduced in 2.0.6. Reduced options of round corners to 1 for code simplification.


2.0.6:
* Use Blur effect for transparent borders when kwin-plugin is enabled (needs KDE >= 4.6.0)
* Updated aqua button theme
* New button theme: glass-pill
* Fix some compile warnings


2.0.5:
* Use KDecoration again instead of KDecorationUnstable; hopefully fixes compile problems
* Remove some probably unnecessary redrawing


2.0.4:
* Built-in logos for various distros
* Some experimental transparency support (requires KDE4 compositing)
* Fix not showing shadow in compositing mode (whiteliste abilities now, not blacklist them; thanks to Zarin for pointing that out)

2.0.3:
* Possibility to stretch or scale overlay images
* Fix showing logo on active window only
* Disable caption shadow for inactive windows so it's easier to read
* Work around "hollow" border glitches when using half-maximized states
* Added backported Kubuntu-Hardy button theme (thanks to Kubuntu team)
* Little nicer default settings

2.0.2:
* Adding back button images in configuration dialog
* Set tooltip of decoration to caption right from the beginning
* Creating and using embedtool again to create tiles.h

2.0.1:
* Scrolling through open windows works again (if option is enabled)
* Link to this page in the info dialog
* Minimizing to systray using kdocker works again

2.0.0:
* Initial release of KDE 4.x port

pmichniewski

9 years ago

I mean bottom-right of course :)

Report

livio

9 years ago

I also have problem compiling it. Mostly because you didn't update it for KDE SC 4.4.0.

CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:98 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/livio/.kde4/share/apps;/usr/share/kde4/apps;/etc/kde4/share/apps
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.8)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Report

MetaBerylCompiz

9 years ago

[matthew@matthew build]$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is unknown
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
CMake Error: your CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at /usr/share/cmake/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/matthew/.kde/share/apps;/usr/share/kde-settings/kde-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

I also tried just "cmake .." but it didn't work, either.

Report

hellofadi

9 years ago

you're missing kdelibs5-dev


after succeeding the cmake step, you may also want to check if you have kdebase-workspace-dev installed (I found that its absense was preventing me from completing the make step)

Report

clauber

9 years ago

I can't find the crystal style in my Systems Settings. Crystal is installed, but it doesn't appears in the list of decorations.

How do I resolve this problem?

Report

makkasi

9 years ago

try to install deb package from http://packages.ubuntu.com/
with

"kwin-style-crystal" if you use debian, ubuntu, kubuntu...

Report

clauber

9 years ago

Good idea, makksi.

I use Slackware and I found the right package for my distribution in http://www.slackbuilds.org/.

Thanks.

Report

makkasi

9 years ago

try to install deb package from http://packages.ubuntu.com/
with

"kwin-style-crystal" if you use debian, ubuntu, kubuntu...

Report

makkasi

9 years ago



installation copleted but
http://i220.photobucket.com/albums/dd252/makkasi/imi.jpg
and when i try

root@makkasi-laptop:/home/makkasi/Desktop/crystal-2.0.5/build# kwin --replace
No protocol specified
kwin: cannot connect to X server :0.0


Report

C

dralgebra

9 years ago

Don't replace as root. Run kwin --replace as user or relogin.

Report

makkasi

9 years ago

i just install with synaptic
kwin-style-crystal
tanks

but I don't know why ,when i search with word crystal in synaptic does not have any result. however

Report

makkasi

9 years ago

makkasi@makkasi-laptop:~/Desktop/crystal-2.0.5$ cd build/
makkasi@makkasi-laptop:~/Desktop/crystal-2.0.5/build$ cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.5.2 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so;/usr/lib/libXft.so;/usr/lib/libXau.so;/usr/lib/libXdmcp.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl
-- Phonon Version: 4.3.1
-- Found Phonon: /usr/lib/libphonon.so
-- Found Phonon Includes: /usr/include/qt4/KDE;/usr/include/qt4
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Failed
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.3 include dir: /usr/include
-- Found KDE 4.3 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Configuring done
-- Generating done
-- Build files have been written to: /home/makkasi/Desktop/crystal-2.0.5/build
makkasi@makkasi-laptop:~/Desktop/crystal-2.0.5/build$ make
Scanning dependencies of target embedtool
[ 7%] Building CXX object pics/CMakeFiles/embedtool.dir/embedtool.o
Linking CXX executable embedtool
[ 7%] Built target embedtool
Scanning dependencies of target kwin3_crystal_automoc
Generating crystalclient.moc
Generating moc_crystalbutton.cpp
[ 7%] Built target kwin3_crystal_automoc
[ 14%] Generating logos.h
[ 21%] Generating tiles.h
[ 28%] Generating overlays.h
Scanning dependencies of target kwin3_crystal
[ 35%] Building CXX object client/CMakeFiles/kwin3_crystal.dir/kwin3_crystal_automoc.o
[ 42%] Building CXX object client/CMakeFiles/kwin3_crystal.dir/buttonimage.o
[ 50%] Building CXX object client/CMakeFiles/kwin3_crystal.dir/crystalbutton.o
[ 57%] Building CXX object client/CMakeFiles/kwin3_crystal.dir/crystalclient.o
Linking CXX shared module ../lib/kwin3_crystal.so
[ 57%] Built target kwin3_crystal
Scanning dependencies of target kwin_crystal_config_automoc
Generating crystalconfig.moc
[ 57%] Built target kwin_crystal_config_automoc
[ 64%] Generating qrc_configdialog.cxx
[ 71%] Generating ui_configdialog.h
Warning: name tab is already used
Warning: name tab is already used
Warning: name tab is already used
Warning: name TabPage is already used
Warning: name TabPage is already used
Warning: name gridLayout is already used
[ 78%] Generating ui_infodialog.h
Scanning dependencies of target kwin_crystal_config
[ 85%] Building CXX object client/config/CMakeFiles/kwin_crystal_config.dir/kwin_crystal_config_automoc.o
[ 92%] Building CXX object client/config/CMakeFiles/kwin_crystal_config.dir/crystalconfig.o
[100%] Building CXX object client/config/CMakeFiles/kwin_crystal_config.dir/qrc_configdialog.o
Linking CXX shared module ../../lib/kwin_crystal_config.so
[100%] Built target kwin_crystal_config
makkasi@makkasi-laptop:~/Desktop/crystal-2.0.5/build$ su -
Password:
root@makkasi-laptop:~# make install
make: *** No rule to make target `install'. Stop.
root@makkasi-laptop:~#

Report

C

dralgebra

9 years ago

Use just "su" or change back the directory, because "su -" changes the directory you are in.

Report

makkasi

9 years ago

:) many tanks

Report

WiseLord

9 years ago

Since 4.4 version, KDE will provide kwin tabs support. In 4.4beta1 only two window themes (Oxygen and TabStrip) supports this fearure.

What about supporting it in Crystal in future?

Report

haiyy

9 years ago

I like this window decoration very much!
I'm using Kubuntu 9.10. Both kwin-style-crystal and your crystal-2.0.5 were installed successfully, but I can't find the crystal style in "System Settings->Stytles". What shall I do, thank you!

Report

junyx

9 years ago

I really like your window decoration.
There's one thing not working for me (using Gentoo Linux): kdocker support.

I had to apply this patch to get it working again:
>>>
diff -crB crystal-2.0.5/client/crystalclient.cpp crystal-2.0.5-kdocker-patch/client/crystalclient.cpp
*** crystal-2.0.5/client/crystalclient.cpp 2009-08-13 17:23:26.000000000 +0200
--- crystal-2.0.5-kdocker-patch/client/crystalclient.cpp 2009-11-11 21:11:20.000000000 +0100
***************
*** 1565,1571 ****

*proc << "kdocker";
sprintf(param,"0x%lx",client);
! *proc << "-d" << "-w" << param;
proc->start();
} else { /* Sorry man */ }
break;
--- 1565,1571 ----

*proc << "kdocker";
sprintf(param,"0x%lx",client);
! *proc << "-w" << param;
proc->start();
} else { /* Sorry man */ }
break;
<<<

basically the "-d" switch did not work (kdocker couldn't recognize the command line).

Report

dequire

9 years ago

Hello - Running Linux Mint 7 (Kubuntu 9.04) gives this error on step 2 (cmake)

james@james-desktop ~/Downloads/crystal-2.0.5/build $ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/james/.kde/share/apps;/usr/share/mintkde-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Help appreciated :)

Report

C

dralgebra

9 years ago

"ERROR: cmake/modules/FindKDE4Internal.cmake not found in"

I guess you do not have the kde4-develop packages installed that ship the file FindKDE4Internal.cmake. I don't know the name of that package in your distribution though.

Report

dequire

9 years ago

Hello - Running Linux Mint 7 (Kubuntu 9.04) gives this error on step 2 (cmake)

james@james-desktop ~/Downloads/crystal-2.0.5/build $ cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at /usr/share/cmake-2.6/Modules/FindKDE4.cmake:84 (MESSAGE):
ERROR: cmake/modules/FindKDE4Internal.cmake not found in
/home/james/.kde/share/apps;/usr/share/mintkde-default-settings/kde4-profile/default/share/apps;/usr/share/kde4/apps
Call Stack (most recent call first):
CMakeLists.txt:4 (find_package)


CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as

cmake_minimum_required(VERSION 2.6)

should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!

Help appreciated :)

Report

accident

9 years ago

Love the theme - been using it since KDE 3.5. Recently upgraded to KDE 4, and the min/max/close buttons are... funky. When a window is opened, they seem to show something of whatever was behind it. They remain the same (moving the window around, etc.) until a mouseover - then they keep whatever tint the mouseover effect was set to, even once the mouse is removed.

http://img386.imageshack.us/i/snapshot1t.png/ - here's a screenshot. In this case, I had moused over the minimize button. The normal tint should be white for all buttons, but there is grey in two of the buttons.

Not sure if this is the crystal theme or my settings - can anyone point me in the right direction?

Report

C

dralgebra

9 years ago

Do you use compositing? For me I have sometimes strange effects when mouseover when compositing is enabled, but that got much better in kde-4.3.2. What version of KDE and QT are you using?

Report

accident

9 years ago

According to ~/.kde/share/config/kwinrc, compositing is disabled. However, I just found out I'm only running KDE 4.2.2 (QT is 4.5.0). Do I need to upgrade KDE to 4.3?

Report

C

dralgebra

9 years ago

I don't think upgrading to KDE-4.3.2 makes a bit difference but upgrading Qt might help.

Report

crematory3

9 years ago

Works great for me in (K)Ubuntu 9.10.

Report

11 years ago

2.2.1 (KDE 4.9):
* Fix tabbing after window shading


2.2.0 (KDE 4.9 only):
* Use API for KDE 4.9

2.1.1 (KDE 4.8):
* Improved compatibility with KDE 4.8
* Fixed possible glitches without compositing in KDE 4.8
* Draws own shadows


2.1.0:
* Support of KDE's cool window tabbing / grouping feature!!
* Fix working with kdocker >= 4.5, if installed (right click on close button to run)
* Fix glitch of round corners in compositing mode introduced in 2.0.6. Reduced options of round corners to 1 for code simplification.


2.0.6:
* Use Blur effect for transparent borders when kwin-plugin is enabled (needs KDE >= 4.6.0)
* Updated aqua button theme
* New button theme: glass-pill
* Fix some compile warnings


2.0.5:
* Use KDecoration again instead of KDecorationUnstable; hopefully fixes compile problems
* Remove some probably unnecessary redrawing


2.0.4:
* Built-in logos for various distros
* Some experimental transparency support (requires KDE4 compositing)
* Fix not showing shadow in compositing mode (whiteliste abilities now, not blacklist them; thanks to Zarin for pointing that out)

2.0.3:
* Possibility to stretch or scale overlay images
* Fix showing logo on active window only
* Disable caption shadow for inactive windows so it's easier to read
* Work around "hollow" border glitches when using half-maximized states
* Added backported Kubuntu-Hardy button theme (thanks to Kubuntu team)
* Little nicer default settings

2.0.2:
* Adding back button images in configuration dialog
* Set tooltip of decoration to caption right from the beginning
* Creating and using embedtool again to create tiles.h

2.0.1:
* Scrolling through open windows works again (if option is enabled)
* Link to this page in the info dialog
* Minimizing to systray using kdocker works again

2.0.0:
* Initial release of KDE 4.x port

12345678910
317
product-maker danhuu Sep 08 2015 8 great
product-maker RavenLX Feb 20 2013 8 great
product-maker herrbatka Feb 05 2013 8 great
product-maker sakasa Jan 10 2013 8 great
product-maker reves121 Jul 08 2012 8 great
product-maker unikum111 Jul 07 2012 8 great
product-maker mcder Jul 02 2012 8 great
product-maker juank202 Jul 01 2012 8 great
product-maker saftsocken Jul 01 2012 8 great
product-maker 8Ypsilon Jul 01 2012 8 great
product-maker idonthack Sep 06 2011 8 great
product-maker amigib Jun 28 2011 8 great
product-maker TommyCZ Jun 19 2011 3 bad
product-maker RGBkde Jun 17 2011 8 great
product-maker Alesvol Jun 05 2011 8 great
product-maker caig Jun 05 2011 8 great
product-maker vitoubien Jun 02 2011 3 bad
product-maker fadnix Mar 27 2011 8 great
product-maker molecule-eye Nov 01 2010 3 bad
product-maker lf88 Oct 25 2010 8 great
product-maker Count:233 Rating: 6.75
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
2.2.1
updated Jan 09 2013
added Feb 11 2008
downloads today
0
page views today 6
+