Devyn Collier Johnson
Devyn Collier Johnson

Reputation: 4282

What is the difference between a GTK theme and a window decoration theme?

What is the difference between a GTK theme and a window decoration theme? I am using Compiz and Unity and I do not understand the difference between these two theme types.

Upvotes: 3

Views: 729

Answers (1)

Jussi Kukkonen
Jussi Kukkonen

Reputation: 14587

Window decorations are handled by the window manager and typically include the window title bar, window title bar buttons and window borders -- and those are the only things a window manager theme can change.

A GTK+ theme on the other hand can change how things look inside the window of a GTK+ application: buttons, entries, labels and all other widgets get their visual style from the GTK theme.

This separation may sound arbitrary and useless... and in a way it is. It only exists because of the way X works: the X server draws the decorations for all windows and clients only draw the window contents. This may be simpler or at least different in the glorious future when X is replaced by Wayland (or Mir if that's the way you lean).

Upvotes: 6

Related Questions