Skip to content

Commit 81130a2

Browse files
committed
metacity: Add stick/unstick button icons
1 parent 0d2a983 commit 81130a2

File tree

6 files changed

+706
-251
lines changed

6 files changed

+706
-251
lines changed

common/metacity-1/metacity-theme-1-dark.xml

Lines changed: 122 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,56 @@
315315
<image filename="shade-icon.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
316316
</draw_ops>
317317

318+
<!--stick-->
319+
<draw_ops name="stick_focused">
320+
<image filename="stick-icon.svg" colorize="C_icon_bg_focused" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
321+
</draw_ops>
322+
323+
<draw_ops name="stick_focused_pressed">
324+
<image filename="stick-icon.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
325+
</draw_ops>
326+
327+
<draw_ops name="stick_focused_prelight">
328+
<image filename="stick-icon.svg" colorize="C_icon_bg_hover" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
329+
</draw_ops>
330+
331+
<draw_ops name="stick_unfocused">
332+
<image filename="stick-icon.svg" colorize="C_icon_bg_unfocused" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
333+
</draw_ops>
334+
335+
<draw_ops name="stick_unfocused_prelight">
336+
<image filename="stick-icon.svg" colorize="C_icon_bg_hover" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
337+
</draw_ops>
338+
339+
<draw_ops name="stick_unfocused_pressed">
340+
<image filename="stick-icon.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
341+
</draw_ops>
342+
343+
<!--unstick-->
344+
<draw_ops name="unstick_focused">
345+
<image filename="stick-icon.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
346+
</draw_ops>
347+
348+
<draw_ops name="unstick_focused_pressed">
349+
<image filename="stick-icon.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
350+
</draw_ops>
351+
352+
<draw_ops name="unstick_focused_prelight">
353+
<image filename="stick-icon.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
354+
</draw_ops>
355+
356+
<draw_ops name="unstick_unfocused">
357+
<image filename="stick-icon.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
358+
</draw_ops>
359+
360+
<draw_ops name="unstick_unfocused_prelight">
361+
<image filename="stick-icon.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
362+
</draw_ops>
363+
364+
<draw_ops name="unstick_unfocused_pressed">
365+
<image filename="stick-icon.svg" colorize="C_button_bg_active" x="(width-object_width)/2" y="(height-object_height)/2" width="object_width" height="object_height"/>
366+
</draw_ops>
367+
318368
<!-- frame styles -->
319369

320370
<frame_style name="normal_focused" geometry="normal">
@@ -343,10 +393,12 @@
343393
<button function="above" state="pressed"><draw_ops></draw_ops></button>
344394
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
345395
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
346-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
347-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
348-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
349-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
396+
<button function="stick" state="normal" draw_ops="stick_focused" />
397+
<button function="stick" state="pressed" draw_ops="stick_focused_pressed" />
398+
<button function="stick" state="prelight" draw_ops="stick_focused_prelight" />
399+
<button function="unstick" state="normal" draw_ops="unstick_focused" />
400+
<button function="unstick" state="pressed" draw_ops="unstick_focused_pressed" />
401+
<button function="unstick" state="prelight" draw_ops="unstick_focused_prelight" />
350402
</frame_style>
351403

352404
<frame_style name="normal_unfocused" geometry="normal_unfocused">
@@ -375,10 +427,12 @@
375427
<button function="above" state="pressed"><draw_ops></draw_ops></button>
376428
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
377429
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
378-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
379-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
380-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
381-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
430+
<button function="stick" state="normal" draw_ops="stick_unfocused" />
431+
<button function="stick" state="prelight" draw_ops="stick_unfocused_prelight" />
432+
<button function="stick" state="pressed" draw_ops="stick_unfocused_pressed" />
433+
<button function="unstick" state="normal" draw_ops="unstick_unfocused" />
434+
<button function="unstick" state="prelight" draw_ops="unstick_unfocused_prelight" />
435+
<button function="unstick" state="pressed" draw_ops="unstick_unfocused_pressed" />
382436
</frame_style>
383437

384438
<frame_style name="normal_max_focused" geometry="max">
@@ -407,10 +461,12 @@
407461
<button function="above" state="pressed"><draw_ops></draw_ops></button>
408462
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
409463
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
410-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
411-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
412-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
413-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
464+
<button function="stick" state="normal" draw_ops="stick_focused" />
465+
<button function="stick" state="pressed" draw_ops="stick_focused_pressed" />
466+
<button function="stick" state="prelight" draw_ops="stick_focused_prelight" />
467+
<button function="unstick" state="normal" draw_ops="unstick_focused" />
468+
<button function="unstick" state="pressed" draw_ops="unstick_focused_pressed" />
469+
<button function="unstick" state="prelight" draw_ops="unstick_focused_prelight" />
414470
</frame_style>
415471

416472
<frame_style name="normal_max_unfocused" geometry="max">
@@ -439,10 +495,12 @@
439495
<button function="above" state="pressed"><draw_ops></draw_ops></button>
440496
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
441497
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
442-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
443-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
444-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
445-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
498+
<button function="stick" state="normal" draw_ops="stick_unfocused" />
499+
<button function="stick" state="prelight" draw_ops="stick_unfocused_prelight" />
500+
<button function="stick" state="pressed" draw_ops="stick_unfocused_pressed" />
501+
<button function="unstick" state="normal" draw_ops="unstick_unfocused" />
502+
<button function="unstick" state="prelight" draw_ops="unstick_unfocused_prelight" />
503+
<button function="unstick" state="pressed" draw_ops="unstick_unfocused_pressed" />
446504
</frame_style>
447505

448506
<frame_style name="normal_max_shaded_focused" geometry="max">
@@ -471,10 +529,12 @@
471529
<button function="above" state="pressed"><draw_ops></draw_ops></button>
472530
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
473531
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
474-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
475-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
476-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
477-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
532+
<button function="stick" state="normal" draw_ops="stick_focused" />
533+
<button function="stick" state="pressed" draw_ops="stick_focused_pressed" />
534+
<button function="stick" state="prelight" draw_ops="stick_focused_prelight" />
535+
<button function="unstick" state="normal" draw_ops="unstick_focused" />
536+
<button function="unstick" state="pressed" draw_ops="unstick_focused_pressed" />
537+
<button function="unstick" state="prelight" draw_ops="unstick_focused_prelight" />
478538
</frame_style>
479539

480540
<frame_style name="normal_max_shaded_unfocused" geometry="max">
@@ -503,10 +563,12 @@
503563
<button function="above" state="pressed"><draw_ops></draw_ops></button>
504564
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
505565
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
506-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
507-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
508-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
509-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
566+
<button function="stick" state="normal" draw_ops="stick_unfocused" />
567+
<button function="stick" state="prelight" draw_ops="stick_unfocused_prelight" />
568+
<button function="stick" state="pressed" draw_ops="stick_unfocused_pressed" />
569+
<button function="unstick" state="normal" draw_ops="unstick_unfocused" />
570+
<button function="unstick" state="prelight" draw_ops="unstick_unfocused_prelight" />
571+
<button function="unstick" state="pressed" draw_ops="unstick_unfocused_pressed" />
510572
</frame_style>
511573

512574
<frame_style name="dialog_focused" geometry="normal">
@@ -535,10 +597,12 @@
535597
<button function="above" state="pressed"><draw_ops></draw_ops></button>
536598
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
537599
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
538-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
539-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
540-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
541-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
600+
<button function="stick" state="normal" draw_ops="stick_focused" />
601+
<button function="stick" state="pressed" draw_ops="stick_focused_pressed" />
602+
<button function="stick" state="prelight" draw_ops="stick_focused_prelight" />
603+
<button function="unstick" state="normal" draw_ops="unstick_focused" />
604+
<button function="unstick" state="pressed" draw_ops="unstick_focused_pressed" />
605+
<button function="unstick" state="prelight" draw_ops="unstick_focused_prelight" />
542606
</frame_style>
543607

544608
<frame_style name="dialog_unfocused" geometry="normal">
@@ -567,10 +631,12 @@
567631
<button function="above" state="pressed"><draw_ops></draw_ops></button>
568632
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
569633
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
570-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
571-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
572-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
573-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
634+
<button function="stick" state="normal" draw_ops="stick_unfocused" />
635+
<button function="stick" state="prelight" draw_ops="stick_unfocused_prelight" />
636+
<button function="stick" state="pressed" draw_ops="stick_unfocused_pressed" />
637+
<button function="unstick" state="normal" draw_ops="unstick_unfocused" />
638+
<button function="unstick" state="prelight" draw_ops="unstick_unfocused_prelight" />
639+
<button function="unstick" state="pressed" draw_ops="unstick_unfocused_pressed" />
574640
</frame_style>
575641

576642
<frame_style name="modal_dialog_focused" geometry="modal">
@@ -599,9 +665,12 @@
599665
<button function="above" state="pressed"><draw_ops></draw_ops></button>
600666
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
601667
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
602-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
603-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
604-
<button function="unstick" state="normal"><draw_ops></draw_ops></button><button function="unstick" state="pressed"><draw_ops></draw_ops></button>
668+
<button function="stick" state="normal" draw_ops="stick_focused" />
669+
<button function="stick" state="pressed" draw_ops="stick_focused_pressed" />
670+
<button function="stick" state="prelight" draw_ops="stick_focused_prelight" />
671+
<button function="unstick" state="normal" draw_ops="unstick_focused" />
672+
<button function="unstick" state="pressed" draw_ops="unstick_focused_pressed" />
673+
<button function="unstick" state="prelight" draw_ops="unstick_focused_prelight" />
605674
</frame_style>
606675

607676
<frame_style name="modal_dialog_unfocused" geometry="modal">
@@ -630,10 +699,12 @@
630699
<button function="above" state="pressed"><draw_ops></draw_ops></button>
631700
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
632701
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
633-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
634-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
635-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
636-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
702+
<button function="stick" state="normal" draw_ops="stick_unfocused" />
703+
<button function="stick" state="prelight" draw_ops="stick_unfocused_prelight" />
704+
<button function="stick" state="pressed" draw_ops="stick_unfocused_pressed" />
705+
<button function="unstick" state="normal" draw_ops="unstick_unfocused" />
706+
<button function="unstick" state="prelight" draw_ops="unstick_unfocused_prelight" />
707+
<button function="unstick" state="pressed" draw_ops="unstick_unfocused_pressed" />
637708
</frame_style>
638709

639710
<frame_style name="utility_focused" geometry="small">
@@ -662,10 +733,12 @@
662733
<button function="above" state="pressed"><draw_ops></draw_ops></button>
663734
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
664735
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
665-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
666-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
667-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
668-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
736+
<button function="stick" state="normal" draw_ops="stick_focused" />
737+
<button function="stick" state="pressed" draw_ops="stick_focused_pressed" />
738+
<button function="stick" state="prelight" draw_ops="stick_focused_prelight" />
739+
<button function="unstick" state="normal" draw_ops="unstick_focused" />
740+
<button function="unstick" state="pressed" draw_ops="unstick_focused_pressed" />
741+
<button function="unstick" state="prelight" draw_ops="unstick_focused_prelight" />
669742
</frame_style>
670743

671744
<frame_style name="utility_unfocused" geometry="small_unfocused">
@@ -694,10 +767,12 @@
694767
<button function="above" state="pressed"><draw_ops></draw_ops></button>
695768
<button function="unabove" state="normal"><draw_ops></draw_ops></button>
696769
<button function="unabove" state="pressed"><draw_ops></draw_ops></button>
697-
<button function="stick" state="normal"><draw_ops></draw_ops></button>
698-
<button function="stick" state="pressed"><draw_ops></draw_ops></button>
699-
<button function="unstick" state="normal"><draw_ops></draw_ops></button>
700-
<button function="unstick" state="pressed"><draw_ops></draw_ops></button>
770+
<button function="stick" state="normal" draw_ops="stick_unfocused" />
771+
<button function="stick" state="prelight" draw_ops="stick_unfocused_prelight" />
772+
<button function="stick" state="pressed" draw_ops="stick_unfocused_pressed" />
773+
<button function="unstick" state="normal" draw_ops="unstick_unfocused" />
774+
<button function="unstick" state="prelight" draw_ops="unstick_unfocused_prelight" />
775+
<button function="unstick" state="pressed" draw_ops="unstick_unfocused_pressed" />
701776
</frame_style>
702777

703778
<frame_style name="border_focused" geometry="borderless">

0 commit comments

Comments
 (0)