Port to GTK 3.24 and recolour to the film palette
The GTK3 sheets targeted GTK 3.18 and broke at 3.20, when the CSS class model was replaced by element nodes. On 3.24 they parsed but matched almost nothing: buttons, entries, tabs, scales and scrollbars rendered as bare rectangles. Rewritten against the node model. gtk-3.0/ gtk.css colour definitions only - recolour the theme here widgets.css all widget rules, node-selector based mate.css MATE panel, applets, window list, Caja, terminal gtk-dark.css alias of gtk.css (the theme is already dark) legacy/ the original 3.18 sheets, moved aside for reference Palette retargeted to the WAR10CK window in Live Free or Die Hard: bg #23425E, accent #BA6A07. Supporting shades derived with the original theme's own ratios (raised x1.42, recessed x0.72). Text had to be lifted - the old #868A8E scores 3.0:1 on #23425E, so normal text is #B4C4D2 (5.85:1) and bright text #E8F0F7 (9.06:1). metacity-1/ pixmaps remapped by projecting each pixel onto the segment between its two nearest source anchors and re-blending against the new ones, so antialiased edges stay clean. Titlebar is ~7px taller, its text is centred and no longer a hardcoded #6d7379 for both focus states, and the idle window-button glyphs are white instead of a dim orange that turned to mud on the lighter bar. Scrollbars are deliberately not accent-coloured; @scrollbar_slider (#454F5A) keeps them quiet at rest and findable on hover. Fixes a transparent-body bug: GtkDialog and GtkAssistant do not use the `window` CSS node in 3.20+, so every dialog, About box and file chooser rendered as a hole through to the desktop. Attribution and the GPL-3.0 modification notice added to README.md, index.theme and metacity-theme-1.xml. Licence unchanged. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<metacity_theme>
|
||||
<info>
|
||||
<name>Diehard4</name>
|
||||
<author>obscurant</author>
|
||||
<copyright>GPL</copyright>
|
||||
<author>obscurant; GTK3 port and recolour by zavage</author>
|
||||
<copyright>GPL v3</copyright>
|
||||
<date>7/26/11</date>
|
||||
<description>Port of Diehard4 Emerald</description>
|
||||
</info>
|
||||
@@ -20,8 +20,8 @@
|
||||
<distance name="right_titlebar_edge" value="5"/>
|
||||
<distance name="button_width" value="13"/>
|
||||
<distance name="button_height" value="13"/>
|
||||
<distance name="title_vertical_pad" value="0"/>
|
||||
<border name="title_border" left="0" right="0" top="5" bottom="0"/>
|
||||
<distance name="title_vertical_pad" value="4"/>
|
||||
<border name="title_border" left="0" right="0" top="2" bottom="2"/>
|
||||
<border name="button_border" left="2" right="2" top="3" bottom="0"/>
|
||||
</frame_geometry>
|
||||
|
||||
@@ -33,8 +33,8 @@
|
||||
<distance name="right_titlebar_edge" value="7"/>
|
||||
<distance name="button_width" value="13"/>
|
||||
<distance name="button_height" value="13"/>
|
||||
<distance name="title_vertical_pad" value="0"/>
|
||||
<border name="title_border" left="10" right="0" top="5" bottom="0"/>
|
||||
<distance name="title_vertical_pad" value="4"/>
|
||||
<border name="title_border" left="10" right="0" top="2" bottom="2"/>
|
||||
<border name="button_border" left="2" right="2" top="3" bottom="0"/>
|
||||
</frame_geometry>
|
||||
|
||||
@@ -59,11 +59,11 @@
|
||||
</frame_geometry>
|
||||
|
||||
<draw_ops name="title-text-focused">
|
||||
<title color="#6d7379" x="IconTitleSpacing" y="0-3"/>
|
||||
<title color="#E8F0F7" x="IconTitleSpacing" y="(height - title_height) / 2"/>
|
||||
</draw_ops>
|
||||
|
||||
<draw_ops name="title-text-unfocused">
|
||||
<title color="#6d7379" x="IconTitleSpacing" y="0-3"/>
|
||||
<title color="#8CA2B6" x="IconTitleSpacing" y="(height - title_height) / 2"/>
|
||||
</draw_ops>
|
||||
|
||||
<draw_ops name="blank">
|
||||
|
||||
Reference in New Issue
Block a user