Theme (Gtk-2) features in detail, revisited.

Themes, icons, wallpapers, etc.
Message
Author
User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#41 Post by torm »

new-gtk2 is a tiny GTK2 theme reload program.

To build, strip and install, open terminal in this directory and type:
make
make install

To use new-gtk2 from terminal or script type:
new-gtk2 /usr/share/themes/THEME-NAME/gtk-2.0/gtkrc

..where THEME-NAME is the folder-name of the theme.
new-gtk2 should complain if a theme argument is missing,
or if the selected path does not end with a regular gtkrc file.
Selected theme path is written to global /root/.gtkrc-2.0 file
and GTK2 programs reloaded with the selected theme.

Notes.
Default install path for new-gtk2 is /root/my-applications/bin
while it can run from some other location.
Also the GTK2 theme may be selected from any sane location.
In ROX Filer it is possible to drag-and-drop the gtkrc file directly on the new-gtk2 to select
a new theme :wink:
Attachments
new-gtk2_C-source.tar.gz
C source for new-gtk2
(1.28 KiB) Downloaded 386 times

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#42 Post by torm »

While I think that ROX should have a more intuitive and WhatYouSeeIsWhatYouGet
wallpaper selection dialog as built-in feature..

Below is a tiny gtkdialog4 app for ROX wallpaper selection.
Maybe my expectations on gtkdialog4 were a bit too high.. but it works for most part.
( found that treeview does not autoscroll to selected item, or allow refresh to a "selected-row" number.. )

- previously selected wallpaper is set as first ( selected ) item on the wallpaper list.
Same if the wallpaper was set with some other app from a random location.
- wallpaper list has the primary focus for keyboard - use arrow keys to select, and any of the Space, Shift+Space,
Return or Enter keys to apply
- double-click on list item, or click on the preview to apply the current selection
- selecting different layout like "tile" etc. will apply/reload the current selection
- wallpaper list can be reloaded runtime with a click on "refresh" , - current wallpaper is set as first on the list
- no translatable text labels or tooltips
- no icons, default or custom, or icon-themes to depend on ( some WM-s may nag here.. )

Defaults:
- data directory is /usr/share/backgrounds folder, click on "folder" to open it in a new ROX window
- /root/.config/awall stores the pixmaps used in dialog, also the link to current wallpaper
- /root/my-applications/bin/awall is the location of the script

Notes.
Should work on most Puppy versions with ROX desktop and gtkdialog4.
The script doesn't use the "nl" command.
01 - stands for first version as stand-alone app.
Inherits GPLv3 license from ArktisWM package.
Attachments
awall_noarch-01.pet
awall, ROX wallpaper selection dialog
(6.13 KiB) Downloaded 234 times

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#43 Post by torm »

PClock-retro with extended theme support.

Updated to version 0.13.2, modification - 09. Not backwards compatible.
Will leave the old pet packages as-is for now, and add new
source below this post.

This modification allows to use any shape and size xpm pixmaps for clock face.
Hands center on clock face area is configurable.
Other minor fixes and updates.. please see README file for details.

New long-options added:
--xs=INT size X
--ys=INT size Y
--xa=INT hands X
--ya=INT hands Y
--ar=INT hands arc size
--ne do not draw hands opposite side extension
--se=INT seconds hand extension lenght
--he=INT hour and minute hands extension lenght
--dc=COLOR date color
--fn=FONT date X11 corefont

Other...
gtkdialog4-based gettexted setup.
Dialog uses custom icons.
Startup with link in /root/Startup folder.
Includes simple demo themes and old defaults.

PS.
Feel free to suggest any clock skins for
theme pack that xpm files can handle.
Well, with correct licensing, if possible.. :)

Sidenote about xpm files.
Just for experiment used a shaped pixmap with 7098 colors.
Did not make any big difference, just loaded a bit slower, with about the same CPU/RAM use running.
MTPaint refused to open that file..
Would suggest anyway to export using indexed color palette with minimal ( well, less than 256 ) colors.
Included demos don't use more than 28 colors at a time.
xpm files can be opened/edited with most text editors.
Attachments
PClock-retro_09_C-source.tar.gz
ver. 09 C-source and data
(33.92 KiB) Downloaded 89 times
screenshot_pclock.jpg
screenshot with default background
(50.58 KiB) Downloaded 66 times

User avatar
torm
Posts: 186
Joined: Sat 07 Mar 2015, 19:56

#44 Post by torm »

Something more on the topic.. :wink:

Arktis GTK2 theme engine.

Primary goal is to provide uniform look of Arktis Desktop for GTK2 apps.
Other than that, it is for most part just like any other GTK2 theme engine.

The engine is designed with minimalistic drawing operations and uses colors specified in gtkrc.
For detailed information - please see comments in included example gtkrc file.
It is at very early stage of development - there can be radical changes to source and configuration details,
also workarounds for broken apps or widgets.
Please let me know, if something doesn't look as expected.

PS.
Oh, I last worked on it.. in January? :roll:
may have forgotten a thing or two since then.
Default theme for engine has extended support for ROX-Filer, see screenshot.



Qt apps.
_____
You should configure Qt apps with Qt Configuration, to set colors etc.
as those may - or not - conflict with gtkrc parameters.
There are few workarounds built-in, while some Qt apps may still have custom hardcoded color definitions.


Legal.
_____
Arktis GTK2 theme engine is forked from and loosely based on Clearlooks and Ubuntulooks.
It is released under GPLv3 license, with "any later version" option.


_____


Build.

You will need at least automake-1.7 and aclocal-1.7 versions installed. And DEVX.sfs loaded.
Then run:
Arktis_GTK2_engine_build-and-install.sh

script in the engine source directory.
That should do the job for the most part, I hope.
Don't expect a lot of questions to be asked..
Feel free to edit that script, autogen.sh, Makefile.am or configure.ac as and if needed.
When in doupt, please see README file again in the source directory.

Theme lib build size is around 54 KB stripped ( on tahrpup606 32bit ) .
_____

Version.

Arktis GTK2 engine will be included with ArktisWM window manager package and
follows ArktisWM lead version number. Makes current ( first ) version of engine 05.01


I hope this rounds it up for now. You can find the C source below.
PS.
If no serious issues, will try to add prebuilt packages over time.
Attachments
Arktis_GTK2-engine_v0501_C-source.tar.gz
C source of Arktis GTK2 engine
(73.35 KiB) Downloaded 84 times
Arktis_GTK2-engine_v0501_tahrpup606-32bit.pet
prebuilt package, Arktis GTK2 engine, tahrpup606 32bit
(30.39 KiB) Downloaded 81 times
run_in_terminal.png
run in terminal to build and install
(78.22 KiB) Downloaded 20 times
screenshot_arktis-gtk2-theme.png
Arktis screenshot with default bright theme
(120.13 KiB) Downloaded 20 times

Post Reply