Skip to content

An adaptive Gtk+ theme based on Material Design Guidelines

License

Notifications You must be signed in to change notification settings

dzen-intelligence/Adapta

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Adapta

An adaptive Gtk+ theme based on Material Design Guidelines.

Day Adapta:

  • Light/Dark variant Gtk+ 3.22/3.20/3.18 theme
  • Light/Dark variant Budgie-Desktop theme
  • Light variant Gtk+ 2.0 theme
  • Light variant Gnome-Shell theme
  • Light variant Cinnamon theme

Night Adapta-Nokto:

  • Light/Dark variant Gtk+ 3.22/3.20/3.18 theme
  • Light/Dark variant Budgie-Desktop theme
  • Dark variant Gtk+ 2.0 theme
  • Dark variant Gnome-Shell theme
  • Dark variant Cinnamon theme

Note:

Both also includes common GNOME-Flashback, Unity7, XFce4 and Mate theming.

Day Adapta-Eta:

  • Light/Dark variant Gtk+ 3.22/3.20 theme
  • Light/Dark variant Budgie-Desktop theme

Night Adapta-Nokto-Eta:

  • Light/Dark variant Gtk+ 3.22/3.20 theme
  • Light/Dark variant Budgie-Desktop theme

Note:

Eta is tiny Gtk+ 3.2x widget variant for space-saving (Gtk+ 3.22.x/3.20.x only). Others are the same as Adapta/Adapta-Nokto.

Elements

Materials

Required Components

Adapta supports Gtk+ 3.22.x, 3.20.x and 3.18.x

* Gtk+-3.0             >= 3.22.0 (or 3.20.1 or  3.18.9)
* Gtk+-2.0             >= 2.24.30
* gtk2-engines-pixbuf  >= 2.24.30
* gtk2-engines-murrine >= 0.98.1

Supported Desktop Environments

* GNOME-Shell     >= 3.22.0 (or 3.20.1 or 3.18.3)
* GNOME-Flashback >= 3.20.1 (or 3.18.2)
* Budgie-Desktop  >= 10.2.5
* Cinnamon        >= 3.0.1 (or 2.8.6)
* Unity7          >= 7.4.0
* XFce4           >= 4.12.2
* Mate            >= 1.14.0 (Gtk+ 3.2x only)

Note:

  • Mate-Desktop support is under W.I.P.

Unsupported Gtk+ Based Desktops

  • Pantheon

Installation from Package(s)

Note:

  • Solus OS has an eopkg (ypkg) in main repository.

Installation from Git Source

  1. If previous version was installed/existed, remove them at first.
sudo rm -rf /usr/share/themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
rm -rf ~/.local/share/themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
rm -rf ~/.themes/{Adapta,Adapta-Eta,Adapta-Nokto,Adapta-Nokto-Eta}
  1. Check build-requirements: Today Adapta bundles neither pre-generated stylesheets nor PNG images. So users and/or contirbutors should generate proper CSSs and PNGs at build-time.
* autoconf
* automake
* inkscape
* libglib2.0-dev (glib2)          >= 2.48.0
* libxml2-utils (libxml2)
* pkg-config (pkgconfig)
* ruby-bundler (rubygem-bundler)  >= 1.11
* ruby-sass (rubygem-sass)        >= 3.4.21

Note:

  • Adapta employs Gem generator for SASS/SCSS via bundle and sass.
  • Adapta uses inkscape to generate installable PNG files.
  • Adapta uses glib-compile-resources to compile gresource file for Gnome-Shell.
  1. Build and install system-wide:
./autogen.sh
make
sudo make install

Note:

  • Default prefix is /usr.
  • Adapta-Nokto dark variant is installed as default.
  • make generates proper CSSs and PNGs to be installed. And it will take about 5min to 15min to build, for example, Ubuntu's build-server actually does 10min...
  • sudo make install installs multiple versioned theme and Gtk+ automatically selects proper versioned one when running.
  1. If users want to speed up with concurrency-build, please pass this specific options to autogen.sh:
--enable-parallel       enable parallel-build support (type: bool)

Note:

  • This feature requires GNU parallel, so please add parallel to build-requirements. Parallel can execute multiple scripts and binaries to be suitable for multi-threading. Especially it could shorten the rendering-time via Inkscape and generation-time via sass.
  • -jN option to be passed to GNU make is surely usable though, but Adapta employs parallel meanwhile...
  • This feature should not be applied when packaging on remote/shared build-servers.
  1. If users want to disable some DE supports, please pass these specific options to autogen.sh:
--disable-cinnamon      disable cinnamon support (type: bool)
--disable-flashback     disable flashback support (type: bool)
--disable-unity         disable unity support (type: bool)
--disable-xfce          disable xfce support (type: bool)
--disable-mate          disable mate support (type: bool)

Note:

  • Installer installs GNOME/Budgie-Desktop support even if all of options above were applied.
  • Cinnamon/Unity/Mate support hooks metacity-1 directory even if GNOME-Flashback support was disabled.
  1. If users want to enable next Gtk+ release support, please pass this option:
--enable-gtk_next      enable Gtk+ 3.23.x support (type: bool)
  1. If users want to change default 5 Key-Colors, please pass these options:
--with-selection_color        Primary color for 'selected-items' (Default: #00BCD4 = Cyan500, type: int)
--with-second_selection_color Primary color for 'select' effects (Default: #4DD0E1 = Cyan300, type: int)
--with-accent_color           Secondary color for notifications and OSDs (Default: #4DB6AC = Teal300, type: int)
--with-suggestion_color       Secondary color for 'suggested' buttons (Default: #009688 = Teal500, type: int)
--with-destruction_color      Tertiary color for 'destructive' buttons (Default: #FF5252 = RedA200, type: int)

Note:

  • Color-codes are defined as # + 6HEXs (Standard RGB definitions in HTML codes). And uppercases are strongly recommended in Adapta code-base.

  • Material Desing Color Palette is here: External Link

  • Example) If you would like to use 'Teal500' as selection_color, try this:

    ./autogen.sh --with-selection_color=#009688 --with-second_selection_color=#4DB6AC

    This can switch to almost-Teal key colors.

  • Basically selection_color and suggestion_color should be with 500 colors, and second_selection_color and accent_color should be with 300 colors.

  • While doing make, Adapta changes those 5 colors in all stylesheets and images, and make clean cleans up all generated files from source directories.

Extra Browser Support

If users want to try experimental browser specific theming, please pass this option:

--enable-chrome         enable Chrome(ium) support (type: bool)

The compressed crx files will be installed into Adapta/chrome and Adapta-Nokto/chrome.

Note:

  • Today Chrome(ium) theming is supported only.

  • Vivaldi can make custom themes via settings like these:

    Background: #FAFBFC (#3E515A)
    Foreground: #263238 (#ECEFF1)
    Highlight:  #00BCD4
    Accent:     #2A373E
    Accent Color from Active Page: [ ]
    Apply Accent Color to Window:  [*]
    Transparent Tabs:              [*]
    Corner Rounding:               2px
    

Extra Dock Support

If users want to try "Plank" theming, please pass this option:

--enable-plank         enable Plank support (type: bool)

Then select Gtk+ via plank --preferences.

Note:

  • Both Adapta and Adapta-Nokto shares same theming.
  • Don't expect too much. Plank is NOT themeable widget for me!

Official Wallpaper of Adapta Tri-Fadeno-Thumbnail

Raw image is here.

  • Resolution: 3840 x 2160 (4K = 2160p)
  • Created with Gimp and Inkscape
  • License under GPLv2

I mainly use it when running Budgie, and it might be suitable for night owls...

Work in Progress

  • Conversion to Gtk+ 3.23
  • Add Mate 1.14 integration

TODO

  • Prepare for Steam theming (priority: Low)
  • Add Firefox specific theming (priority: undecided)

Public License

GPLv2

Note:

SVG files are licensed under CC BY-SA 3.0

Special Thanks to

Nana-4, the developer of Flat-Plat.

About

An adaptive Gtk+ theme based on Material Design Guidelines

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 88.5%
  • Makefile 6.6%
  • Shell 4.3%
  • Other 0.6%