CDE / Motif theme Featured

GTK3 Themes cde emulation gtk2 gtk3

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

15
7.6
Description:

Gtk2 / Gtk3 theme mimicking CDE / Motif and Front panel app
'An elegant desktop, from a more... civilzed age.' ;)

Latest version 1.3 : Now includes configurable XFCE window decorations. Title height and border width can be set in pixels, and the images necessary for xfwm making up the border and window buttons will be generated from that. Also the panel app and gtk/xfce theme are now combined into a single package

Unpack, and run 'cdepanel'. (Maybe do chmod u+x cdepanel first.)
Tested on Xubuntu 17.10.

To generate theme files without using the panel app, use the 'switchtheme' script.



CDE= Common Desktop Environment was (is) a colorful desktop from the '90s with a very distinct flat / boxy look.

Comes with about 40 original CDE color schemes. Script generates the gtk.css etc files. Includes the purplish 'Solaris' found in many 'cde themes' (the palette Crimson.dp) and a color scheme used on HPUnix (at least on the Hp9000 I used).

Includes theme for Xfce window decorations ala CDE/Motif



README FILE ########################################################################

CDEPANEL AND CDETHEME 1.3 / JOS@JOSVANRISWICK.COM

CDE front panel emulation with gtk and xfce theme

###################################################################################
HOW TO TEST:

Make fresh a live usb of xubuntu 17.10 and run the binary 'cdepanel'
(you may need to do 'chmod u+x cdepanel')

Use gtk/xfce theme *without* the panel app with the 'switchtheme' script, eg:

./switchtheme ../palettes/Broica.dp 8 5 18 true true true

###################################################################################
NEWS:

In this 1.3 version I added configurable XFCE window decorations. Title height
and border width can be set in pixels, and the images for borders and window
buttons will be generated from that.

Directories and are now organized a bit different. See 'TWEAK' below.

###################################################################################
REQUIREMENTS:

1) linux
2) a /tmp directory
3) python2.7
4) imagemagick convert
5) gtk2 pixmap engine
6) python and PyQt4
7) Prefarably, use XFCE4 !

It was tested on xubuntu 17.10. On ubuntu,
python and imagemagick should come installed. But if not, do:

sudo apt install imagemagick python gtk2-engines python-qt4 gtk2-engines-pixbuf

###################################################################################
INSTALLATION:

A) CDE Panel app

1) extract the zip to some place you can access
2) copy 'cdepanel' to your path, or just run it from there
(maybe you need to make it executable, do: 'chmod u+x cdepanel')

If you are using xfce4 the script will set a different CDE
backdrop to every workspace. However, not all versions of xfce4 allow
setting the backdrop from a script. So you may need to go into
SETTINGS/DESKTOP and uncheck 'Apply to all workspaces'.

The Gtk2/3 theme uses images (arrows and such). Gtk3 doesnt always display
these sharply, depending on the dpi setting or font size. If some elemens
in apps appear blurred, try modifying your custom dpi setting or font
size. (XFCE SETTINGS/APPEARANCE/FONTS)

If the 'cdepanel' binary doesnt work on your system, you need to TWEAK (see below)

B) Gtk/xfce theme *without* cde panel app

1) copy 'cdetheme' directory to ~/.themes
2) Go into xfce/settings/ appearance and window manager to pick 'cdetheme'
(or similar app in other environments)
3) use the 'switchtheme' script for picking a new color palette or set the
window height/border width

###################################################################################
USAGE:

Configuration of the cdepanel app can mostly be done by right click on the panel.
Apps can be added to the panel and drawers using drag and drop.

Keys and mouse:

mousewheel: switch workspace
=/- or ctrl-mousewheel: change size
h/H or shift-mousewheel: change sharpness/antialiasing
p/P: quick palette switch
s/S: tweak displayed saturation
c: pop up config dialog

###################################################################################
TWEAK

The file 'cdepanel' is a pyinstaller executable containing almost all
dependencies. So running that has the greatest chance of just working. The
cdepanel script will try to make an initial configuration based on what it
finds on your system. If you want to manually tweak or modify/improve the
configuration or scripts, here are some pointers:

cdetheme/: directory containting the gtk/xfce theme files, should be copied to
~/.themes A link to this directory called cdetheme1 will be created to be able
to quickly switch and affect changes when the theme has been modified

cdetheme/scripts: directory with all the python scripts

scripts/cdepanel.py: the source file of the main app. If the binary 'cdepanel'
doesnt work, try to run this one.

scripts/switchtheme: script for setting the theme (gtk/xfce), without using the
panel app

scripts/CdePanel/: the configuration directory for cdepanel. On initial run,
this is copied to your ~/.config directory.

CdePanel/layout: file that determines what is shown on the panel

CdePanel/config: some configuration options

CdePanel/cache: icon cache. If your icons look funny, empty this dir

CdePanel/drawers: contains drawer files (the arrow things that pop up a list of
apps). On inital run, a set of default drawers is created.

###################################################################################
PYHON DEPENDENCIES

If you want to use the python modules instead of the 'binary' please install
the following dependencies:

sudo apt install python-dev build-essential python-sip-dev python-sip-dev libpythonqt-dev libqt4-dev libqt4-dev libqt4-dev python-qt4-dev python-qt4 python-yaml python-xdg python-pil python-pip

sudo pip install ewmh
sudo pip install colors.py
sudo pip install pyinstaller

###################################################################################
QT THEME

Hmm in xubuntu 17.10 the gtk style now doesnt seem to be applied to QT apps. To do this install

sudo add-apt-repository ppa:mati75/qt5ct
sudo apt install qt5ct
sudo apt install qt5-style-plugins

and in .bashrc set

QT_QPA_PLATFORMTHEME=qt5ct
export QT_QPA_PLATFORMTHEME=qt5ct

(one of the 2)

start qt5ct and pick 'gtk+'



So yes.. I hope you can get it to work !

iiiaqd

2 months ago

8 +I added Xfce compatible modifications for CSD (Nautilus, Evince etc): https://pastebin.com/Qc21qGdh

Report

rosaastrum

2 months ago

Thank you!!! That was the one major flaw I discovered in this them, and now it's a perfect all-arounder. I hope josvanr includes it in their next version. :)

Report

C

josvanr

2 months ago

Great, thnx ! Hm yes I hope I'll ever be able to work on this again..

Report

slhsen

2 months ago

My favourite theme! My only complain is that title bars don't gray out when window is inactive on Gnome 3.28.2 on Ubuntu.

Report

wooliewool

3 months ago

Attempting to run cdepanel under Ubuntu 18.10 Cosmic Cuttlefish gave me a very large number of fontconfig errors: https://pastebin.com/g3sUxAJs

Report

C

josvanr

3 months ago

wait it seems to be some other problem:

https://bbs.archlinux.org/viewtopic.php?id=235643

Report

wooliewool

3 months ago

So what are my options? Since I'm running a VM I'm tempted just to nuke the VM and overwrite it with Ubuntu 17.10 to match the version you developed on. Installing the fontconfig deb from bionic just made cdepanel fail with the same errors faster.

Report

C

josvanr

3 months ago

I'm running the LTS version (18.04) myself and it works fine here. Not sure how to fix the problem in 18.10, but itdoesnt seem to be an issue with the cdetheme itself. So I guess you can either do some more digging, or just install 18.04. Then it should work right away

Report

C

josvanr

3 months ago

PS are you running cdepanel.py from the scripts directory or the 'binary' (cdepanel)? The latter has been 'compiled' for xubuntu 17. If you want to use the theme on 18.04, you have to run the python script cdepanel.py (and also install dependencies if necessary). Maybe you could try that first in your current installation, if you haven't done so already...

Report

wooliewool

3 months ago

I already replace Xubuntu 18.10 with 17.10 before you posted that but I ran python cdepanel.py after installing all suggested dependencies, and got:
File "cdepanel.py", line 183
print '>'+Globals.EXECUTABLE+'<'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('>'+Globals.EXECUTABLE+'<')?

This was after I commented out one print, and I scrolled through the ,py and found this command over and over, and figured that I probably shouldn't have commented them out..

Report

C

josvanr

3 months ago

Ok. Aha that sounds like you have python3 whereas I still had python 2.7. I think 3 uses print() where in 2 one could use print etc without (). I must port the scripts one day. Dont know how much work that is...

Report

C

josvanr

3 months ago

hello! Hm I'm not sure what the error messages mean, but maybe you can try using a different font. The font is not yet in the config file, but you can define it in cdepanel.py. Just look for 'Globals.font'. Hope it helps..

Report

chris-k

3 months ago

The colour scheme does not work in Seamonkey as expected. Menu background colour is 'dark green' (#244953), instead of 'cyan' (#4992A7). The reason is that in

CDE/gtk-3.20/widgets.jos.css

you have

background-color: @bs_menu;

for

_dialog menu

Instead, you should have

background-color: @bs_menu;

This translates (probably through your process.py script, which I didn't try yet) to various

background-color: @bs_menu;

instructions inside code that regards 'menu' parts in widgets.css, in the same directory. Those instructions should be changed to

background-color: @bg_menu;

(but only in code that regards 'menu'!). Here is a diff file that you can use as a quick patch:

--- CDE/gtk-3.20/widgets.css.orig 2018-05-04 23:55:07.000000000 +0200
+++ CDE/gtk-3.20/widgets.css 2019-01-30 00:25:42.854569899 +0100
@@ -213,7 +213,7 @@
border-left-color: @ts_menu;
border-right-color: @bs_menu;
border-bottom-color: @bs_menu;
- background-color: @bs_menu;
+ background-color: @bg_menu;
border-style: solid;
border-width: 1px;
padding: 1px;
@@ -2536,7 +2536,7 @@
border-left-color: @ts_menu;
border-right-color: @bs_menu;
border-bottom-color: @bs_menu;
- background-color: @bs_menu;
+ background-color: @bg_menu;
border-style: solid;
border-width: 1px;
padding: 1px;
@@ -4859,7 +4859,7 @@
border-left-color: @ts_menu;
border-right-color: @bs_menu;
border-bottom-color: @bs_menu;
- background-color: @bs_menu;
+ background-color: @bg_menu;
border-style: solid;
border-width: 1px;
padding: 1px;
@@ -7182,7 +7182,7 @@
border-left-color: @ts_menu;
border-right-color: @bs_menu;
border-bottom-color: @bs_menu;
- background-color: @bs_menu;
+ background-color: @bg_menu;
border-style: solid;
border-width: 1px;
padding: 1px;
@@ -9505,7 +9505,7 @@
border-left-color: @ts_menu;
border-right-color: @bs_menu;
border-bottom-color: @bs_menu;
- background-color: @bs_menu;
+ background-color: @bg_menu;
border-style: solid;
border-width: 1px;
padding: 1px;
@@ -11828,7 +11828,7 @@
border-left-color: @ts_menu;
border-right-color: @bs_menu;
border-bottom-color: @bs_menu;
- background-color: @bs_menu;
+ background-color: @bg_menu;
border-style: solid;
border-width: 1px;
padding: 1px;

Note that this problem does NOT appear on Firefox 60.x - only on Seamonkey 2.49.x - I guess Seamonkey is more accurate in following the GTK theme (and CSS in general) that Firefox.

Report

chris-k

3 months ago

Comments are not the right place for code! I would love to post all this in a discussion forum through the "send email" link, but it seems I cannot...

In the above, I meant: you have to use

background-color: @bg_menu;

instead. 'bg' - NOT 'bs' - 'bs' is what you have for background-color in menus. It is also clear from the diff file.

Report

chris-k

3 months ago

To set the font size in the UI of Seamonkey, I resorted to setting

* {
font-size: 14pt !important
}

in my (newly created, from an example file in the same dir)

chrome/userChrome.css

Maybe one can achieve the same result with your Python scripts, but they don't work without modifications in Python 3.x, so I didn't try them yet.

Report

C

josvanr

3 months ago

gee thnx someone actually posted a patch! If I ever get round to working on this again, I'll certainly include it. It will probably take some time, though, probably at the next stable xubuntu release (when I upgrade). Or you could start your own release of course :)

Report

brzoskowski

4 months ago

8 +

Report

brzoskowski

4 months ago

Omg, although I work with modern themes this is so beautiful, sometimes I like to download themes like this.

Report

zinjanthr0pus

4 months ago

I'm getting a kind of odd error when I try to run switchtheme.

Traceback (most recent call last):
File "./switchtheme", line 5, in
from PyQt4 import QtCore, QtGui
ImportError: No module named sip

This is weird because supposedly I have both pyqt4 and sip installed for python2 and I am running it using python 2.7. Any ideas?

Trying to run in in the 2.7 interpreter I can `import PyQt4` just fine but get the same error when trying to `from PyQt4 import QtCore,QtGui`

Report

C

josvanr

4 months ago

hmm no. I think PyQt uses sip. I included it manually in cdepanel.py but its not necessary I believe. Maybe its a version conflict. Are all modules you installed for python 2.7? (sip, PyQt4 etc)

Report

zinjanthr0pus

4 months ago

Okay, so looks like there isn't a way to install from pip, but I tried this janky mess just for lulz
```
while True:
try:
from PyQt4 import QtCore, QtGui
break
except ImportError:
pass
```
and eventually it did work, but it also crashed later by not being able to find QPainter attribute of... something. IDK what.

Also, I looked into it and it does look like both sip and PyQt4 are the most recent versions.

Any ideas?

Report

zinjanthr0pus

4 months ago

Looks like 2.7 is my only python2 version, so presumably they are all meant for python2.7. They are all distro packages though rather than pip. Perhaps I'll see what happens if I uninstall them and then install them with pip instead.

PyQt4 version is 4.12.3 and sip version is 4.19.13 according to rpm (openSUSE Tumbleweed user here).

One kind of interesting thing that I found was that following info here: http://bugs.nuitka.net/issue90 (which is a solved issue apparently). I was able to sometimes get the import to work in the interpreter by doing `import sip,atexit` first. Weirdly enough, not always. But, it never worked just by adding `import sip,atexit` to the script.

Not sure if any of that helps. I'll probably just try using pip instead of distro packages and report back.

Report

imkerberos

5 months ago

8 +awesome theme for me!

Report

krig

6 months ago

8 +Great :)))

Report

frantisheq

6 months ago

8 +

Report

12345678910
13
product-maker iiiaqd Mar 15 2019 8 great
+I added Xfce compatible modifications for CSD (Nautilus, Evince etc): https://pastebin.com/Qc21qGdh
product-maker brzoskowski Jan 06 2019 8 great
+
product-maker imkerberos Dec 12 2018 8 great
+awesome theme for me!
product-maker krig Nov 18 2018 8 great
+Great :)))
product-maker frantisheq Nov 05 2018 8 great
+
product-maker roffez Aug 22 2018 8 great
+
product-maker unxusr Aug 12 2018 8 great
+
product-maker unix-junkie Jul 17 2018 8 great
+
product-maker dusthillresident Jun 13 2018 8 great
Excellent work
product-maker xj09 Jun 10 2018 8 great
+
product-maker elbullazul May 17 2018 8 great
very nice theme
product-maker ben-p May 12 2018 8 great
product-maker Mural23 May 11 2018 8 great
product-maker Count: 2 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
GPLv3
version
1.3
updated May 07 2018
added Apr 24 2018
downloads today
19
page views today 65