Attachment 'gtk.css'

Download

   1 /*
   2  * bordi della finestra versione "Semplice"
   3  * cioe` colore fisso. vedi sotto per la versione sofisticata
   4  *
   5  
   6 decoration {
   7   border: 2px solid gray;
   8   background: gray;
   9 }
  10 */
  11 
  12 
  13 
  14 
  15 /*da https://github.com/the-allanc/minty-color-titles/  */
  16 
  17 /* Active window colors */
  18 @define-color active_window_bg_color @theme_selected_bg_color;
  19 @define-color active_window_fg_color @theme_selected_fg_color;
  20 
  21 /* Inactive window colors */
  22 @define-color inactive_window_fg_color @theme_unfocused_fg_color;
  23 @define-color inactive_window_bg_color @theme_unfocused_bg_color;
  24 
  25 
  26 
  27 
  28 /* PATCH DI KURGAN PER AVERE I BORDI DELLE FINESTRE 16-6-2023:
  29  * Bordi della finestra configurati con i colori del tema. Il colore del bordo cambia a seconda
  30  * se la finestra è attiva o no, ed è ugugale al colore della barra del titolo.
  31  * non è bellissimo però con i miei colori di default.
  32 */
  33 
  34 /*
  35 decoration:backdrop {
  36   border: 2px solid @inactive_window_bg_color;
  37   background: @inactive_window_bg_color;
  38 }
  39 decoration:not(:backdrop) {
  40   border: 2px solid @active_window_bg_color;
  41   background: @active_window_bg_color;
  42 }
  43 */
  44 
  45 
  46 /*
  47  * Bordi fissi con il colore "non evidenziato" per essere meno sparati
  48  * Da usarsi al posto della config precedente se quella è troppo sparata per voi
  49 */
  50 decoration {
  51   border: 2px solid @inactive_window_bg_color;
  52   background: @inactive_window_bg_color;
  53 }
  54 
  55 /* FINE DELLA PATCH DI KURGAN PER I BORDI*/
  56 
  57 
  58 
  59 
  60 headerbar {
  61     box-shadow: none;
  62 }
  63 
  64 headerbar:not(:backdrop),
  65 headerbar:not(:backdrop) button:not(:backdrop) {
  66     color: @active_window_fg_color;
  67     background-color: @active_window_bg_color;
  68     background-image: none;
  69     border-color: @active_window_bg_color;
  70     text-shadow: none;
  71     -gtk-icon-shadow: none;
  72 }
  73 
  74 headerbar:backdrop,
  75 headerbar:backdrop button:backdrop {
  76     color: @inactive_window_fg_color;
  77     background-color: @inactive_window_bg_color;
  78     background-image: none;
  79     border-color: @inactive_window_bg_color;
  80 }
  81 
  82 
  83 /* Disables the circle image around the close button,
  84    as well the "shadow" image of inactive window icons
  85    for Mint-Y-Legacy themes.
  86  */
  87 headerbar button.titlebutton,
  88 .titlebar button.titlebutton {
  89     background-image: none;
  90 }
  91 
  92 
  93 headerbar button.titlebutton:not(:backdrop) {
  94     color: @active_window_fg_color;
  95 }
  96 
  97 headerbar button.titlebutton:backdrop {
  98     color: @inactive_window_fg_color;
  99 }
 100 
 101 /* Hover over icons will invert the image with a square image. */
 102 headerbar button.titlebutton:hover:not(:backdrop){
 103     color: @active_window_bg_color;
 104     background-image: -gtk-gradient(radial, center center, 0, center center, 0.8, to(@active_window_fg_color), to(transparent));
 105 }
 106 
 107 headerbar button:hover:not(:backdrop){
 108     color: @active_window_bg_color;
 109     background-color: @active_window_fg_color;
 110 }
 111 
 112 /* Clicking an icon will change the hover representation from circle to square. */
 113 headerbar button.titlebutton:active:not(:backdrop) {
 114     color: @active_window_bg_color;
 115     background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(@active_window_fg_color), to(transparent));
 116 }
 117 
 118 /* Hover over icons will invert the image with a square image. */
 119 headerbar button.titlebutton:hover:backdrop {
 120     color: @inactive_window_bg_color;
 121     background-image: -gtk-gradient(radial, center center, 0, center center, 0.8, to(@inactive_window_fg_color), to(transparent));
 122 }
 123 
 124 headerbar button:hover:backdrop {
 125     color: @inactive_window_bg_color;
 126     background-color: @inactive_window_fg_color;
 127 }
 128 
 129 /* Clicking an icon will change the hover representation from circle to square. */
 130 headerbar button.titlebutton:active:backdrop {
 131     color: @inactive_window_bg_color;
 132     background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(@inactive_window_fg_color), to(transparent));
 133 }
 134 
 135 /* Prevent dark squares appearing around unfocused
 136    OSD app icons in new Mint-Y themes. */
 137 .titlebar button.titlebutton.maximize:hover,
 138 .titlebar button.titlebutton.minimize:hover,
 139 .titlebar button.titlebutton.close:hover {
 140     background-image: none;
 141 }
 142 
 143 
 144 /* Uncomment this section to increase the size of the icons. */
 145 /*
 146 headerbar {
 147     min-height: 36px;
 148 }
 149 
 150 headerbar button.titlebutton,
 151 headerbar button.titlebutton image {
 152     min-width: 30px;
 153     min-height: 30px;
 154     -gtk-icon-transform: scale(1.5);
 155     background-size: 28px 28px;
 156 }
 157 */

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2023-06-16 13:30:25, 4.2 KB) [[attachment:gtk.css]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.