Advertisement
jtts

thunderbird-theme-adwaita-git-17.0_bfcd5c5-1: 0002-...patch

Feb 5th, 2014
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.66 KB | None | 0 0
  1. From 6f72d1ff7c0b86b57e254a307043c480c3d73b38 Mon Sep 17 00:00:00 2001
  2. From: Alexander Seleznev <SeleznevRU@gmail.com>
  3. Date: Sat, 3 Aug 2013 16:15:55 +0700
  4. Subject: [PATCH 2/4] Port .css for textbox, menu, notification from
  5. firefox-gnome
  6.  
  7. ---
  8. theme/chrome/global/global.css | 30 ++++++++++++++-
  9. theme/chrome/global/menu.css | 5 +++
  10. theme/chrome/global/notification.css | 45 +++++++++++++---------
  11. theme/chrome/global/textbox.css | 13 ++++---
  12. theme/chrome/messenger/messenger.css | 2 +
  13. theme/chrome/messenger/symbolic-icons/close.svg | 18 +++++++++
  14. theme/chrome/messenger/symbolic-icons/critical.svg | 19 +++++++++
  15. 7 files changed, 107 insertions(+), 25 deletions(-)
  16. create mode 100644 theme/chrome/messenger/symbolic-icons/close.svg
  17. create mode 100644 theme/chrome/messenger/symbolic-icons/critical.svg
  18.  
  19. diff --git a/theme/chrome/global/global.css b/theme/chrome/global/global.css
  20. index 6a7c8e2..5d4b419 100644
  21. --- a/theme/chrome/global/global.css
  22. +++ b/theme/chrome/global/global.css
  23. @@ -277,9 +277,37 @@ label[disabled="true"] {
  24. border: 1px dotted -moz-DialogText;
  25. }
  26.  
  27. -notification > button {
  28. +notification > button,
  29. +notification toolbarbutton {
  30. margin-top: 0;
  31. margin-bottom: 0;
  32. + -moz-appearance: none;
  33. + background: transparent;
  34. + border-radius: 3px;
  35. + padding: 3px;
  36. + box-shadow: none;
  37. + color: #2e3436;
  38. + transition-property: color, border, box-shadow, background;
  39. + transition-duration: 200ms;
  40. +}
  41. +
  42. +notification > button,
  43. +notification toolbarbutton {
  44. + background-image: linear-gradient(to bottom, #f7f7f7, #dbdbdb);
  45. + border: 1px solid rgba(0,0,0,.4);
  46. + text-shadow: none;
  47. +}
  48. +
  49. +notification > button:not([disabled="true"]):hover,
  50. +notification toolbarbutton:not([disabled="true"]):hover {
  51. + background-image: linear-gradient(to bottom, #ffffff, #ebebeb) !important;
  52. + border-color: rgba(0,0,0,.4) !important;
  53. +}
  54. +
  55. +notification > button:active:hover,
  56. +notification toolbarbutton:active:hover {
  57. + background-image: linear-gradient(to bottom, #c9c9c9, #e4e4e4) !important;
  58. + border-color: rgba(0,0,0,.4) !important;
  59. }
  60.  
  61. /* :::::: autoscroll popup ::::: */
  62. diff --git a/theme/chrome/global/menu.css b/theme/chrome/global/menu.css
  63. index a0cd113..4642bda 100644
  64. --- a/theme/chrome/global/menu.css
  65. +++ b/theme/chrome/global/menu.css
  66. @@ -176,10 +176,15 @@ menuitem[type="radio"] {
  67. /* ::::: menuseparator ::::: */
  68.  
  69. menuseparator {
  70. + /*
  71. -moz-appearance: menuseparator !important;
  72. margin: 2px 0;
  73. border-top: 1px solid ThreeDShadow;
  74. border-bottom: 1px solid ThreeDHighlight;
  75. + */
  76. + margin: 3px 4px;
  77. + border: 1px solid rgba(0,0,0,.08);
  78. + border-width: 1px 0 0;
  79. }
  80.  
  81. menulist > menupopup > menuseparator,
  82. diff --git a/theme/chrome/global/notification.css b/theme/chrome/global/notification.css
  83. index ed632f2..ed645c9 100644
  84. --- a/theme/chrome/global/notification.css
  85. +++ b/theme/chrome/global/notification.css
  86. @@ -5,56 +5,65 @@
  87. @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
  88.  
  89. notification {
  90. - background-color: InfoBackground;
  91. - color: InfoText;
  92. + background: #faad3d;
  93. + color: rgba(0,0,0,0.8) !important;
  94. text-shadow: none;
  95. }
  96.  
  97. notification[type="info"] {
  98. - background-color: -moz-Dialog;
  99. - color: -moz-DialogText;
  100. }
  101.  
  102. notification[type="critical"] {
  103. - background-image: -moz-linear-gradient(rgb(212,0,0), rgb(152,0,0));
  104. - color: white;
  105. }
  106.  
  107. .notification-inner {
  108. - padding-top: 1px;
  109. - padding-bottom: 1px;
  110. + border: 0 !important;
  111. + padding: 4px 0;
  112. }
  113.  
  114. .messageText {
  115. - margin-top: 0 !important;
  116. - margin-bottom: 0 !important;
  117. + margin-top: 0;
  118. + margin-bottom: 0;
  119. }
  120.  
  121. .messageImage {
  122. width: 16px;
  123. height: 16px;
  124. - -moz-margin-start: 6px;
  125. + -moz-margin-start: 15px;
  126. -moz-margin-end: 1px;
  127. }
  128.  
  129. /* Default icons for notifications */
  130.  
  131. .messageImage[type="info"] {
  132. - list-style-image: url("moz-icon://stock/gtk-dialog-info?size=menu");
  133. + list-style-image: url("chrome://messenger/skin/symbolic-icons/information.svg");
  134. }
  135.  
  136. .messageImage[type="warning"] {
  137. - list-style-image: url("moz-icon://stock/gtk-dialog-warning?size=menu");
  138. + list-style-image: url("chrome://messenger/skin/symbolic-icons/important.svg");
  139. }
  140.  
  141. .messageImage[type="critical"] {
  142. - list-style-image: url("moz-icon://stock/gtk-dialog-error?size=menu");
  143. + list-style-image: url("chrome://messenger/skin/symbolic-icons/critical.svg");
  144. }
  145.  
  146. .messageCloseButton {
  147. - list-style-image: url("moz-icon://stock/gtk-close?size=menu");
  148. - margin-top: 0;
  149. - margin-bottom: 0;
  150. + background: transparent !important;
  151. + border: 1px solid transparent !important;
  152. + list-style-image: url(chrome://messenger/skin/symbolic-icons/close.svg);
  153. + margin-top: 5px !important;
  154. + margin-bottom: 5px !important;
  155. + -moz-margin-end: 10px;
  156. + -moz-margin-start: 5px;
  157. + padding: 1px !important;
  158. +}
  159. +
  160. +.messageCloseButton > .toolbarbutton-icon {
  161. + opacity: 0.4;
  162. +}
  163. +
  164. +.messageCloseButton:hover > .toolbarbutton-icon {
  165. + opacity: 1;
  166. }
  167.  
  168. /* Popup notification */
  169. @@ -68,5 +77,5 @@ notification[type="critical"] {
  170. }
  171.  
  172. .popup-notification-closeitem {
  173. - list-style-image: url("moz-icon://stock/gtk-close?size=menu");
  174. + list-style-image: url(chrome://messenger/skin/symbolic-icons/close.svg);
  175. }
  176. diff --git a/theme/chrome/global/textbox.css b/theme/chrome/global/textbox.css
  177. index 543cd37..422c996 100644
  178. --- a/theme/chrome/global/textbox.css
  179. +++ b/theme/chrome/global/textbox.css
  180. @@ -20,13 +20,13 @@ textbox {
  181. -moz-border-right-colors: ThreeDHighlight ThreeDLightShadow;
  182. -moz-border-bottom-colors: ThreeDHighlight ThreeDLightShadow;
  183. -moz-border-left-colors: ThreeDShadow ThreeDDarkShadow;
  184. - padding: 2px 2px 3px;
  185. + padding: 1px 2px 1px;
  186. -moz-padding-start: 4px;
  187. background-color: -moz-Field;
  188. color: -moz-FieldText;
  189. }
  190.  
  191. -html|*.textbox-input,
  192. +html|*.textbox-input,
  193. html|*.textbox-textarea {
  194. margin: 0px !important;
  195. border: none !important;
  196. @@ -73,14 +73,16 @@ textbox.plain {
  197. /* ::::: search textbox ::::: */
  198.  
  199. .textbox-search-icon {
  200. - list-style-image: url(moz-icon://stock/gtk-find?size=menu);
  201. + list-style-image: url(moz-icon://stock/edit-find-symbolic?size=menu);
  202. + filter: url(chrome://messenger/skin/symbolic-icons-colors.svg#input-field-default);
  203. }
  204.  
  205. .textbox-search-clear {
  206. - list-style-image: url(moz-icon://stock/gtk-clear?size=menu);
  207. + list-style-image: url(moz-icon://stock/edit-clear-symbolic?size=menu);
  208. + filter: url(chrome://messenger/skin/symbolic-icons-colors.svg#input-field-default);
  209. }
  210.  
  211. -.textbox-search-icon[searchbutton]:not([disabled]) ,
  212. +.textbox-search-icon[searchbutton]:not([disabled]),
  213. .textbox-search-clear:not([disabled]) {
  214. cursor: pointer;
  215. }
  216. @@ -144,4 +146,3 @@ menuitem[cmd="cmd_selectAll"] {
  217. menuitem[cmd="cmd_selectAll"][disabled] {
  218. list-style-image: url("moz-icon://stock/gtk-select-all?size=menu&state=disabled");
  219. }
  220. -
  221. diff --git a/theme/chrome/messenger/messenger.css b/theme/chrome/messenger/messenger.css
  222. index ad2986b..a60bc85 100644
  223. --- a/theme/chrome/messenger/messenger.css
  224. +++ b/theme/chrome/messenger/messenger.css
  225. @@ -433,6 +433,7 @@ treechildren::-moz-tree-cell-text {
  226. -moz-padding-start: 5px;
  227. }
  228.  
  229. +/*
  230. notification[value="addon-install-blocked"],
  231. notification[value="addon-install-failed"],
  232. notification[value="addon-install-complete"] {
  233. @@ -447,3 +448,4 @@ notification[value="addon-install-failed"] .notification-inner,
  234. notification[value="addon-install-complete"] .notification-inner {
  235. border: none;
  236. }
  237. +*/
  238. diff --git a/theme/chrome/messenger/symbolic-icons/close.svg b/theme/chrome/messenger/symbolic-icons/close.svg
  239. new file mode 100644
  240. index 0000000..45c36bf
  241. --- /dev/null
  242. +++ b/theme/chrome/messenger/symbolic-icons/close.svg
  243. @@ -0,0 +1,18 @@
  244. +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  245. +<svg xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" height="16" width="16" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
  246. +<title>Gnome Symbolic Icon Theme</title>
  247. +<metadata>
  248. +<rdf:RDF>
  249. +<cc:Work rdf:about="">
  250. +<dc:format>image/svg+xml</dc:format>
  251. +<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
  252. +<dc:title>Gnome Symbolic Icon Theme</dc:title>
  253. +</cc:Work>
  254. +</rdf:RDF>
  255. +</metadata>
  256. +<g transform="translate(-60,-518)">
  257. +<g transform="translate(19,-242)">
  258. +<path style="color:#2e3436;text-transform:none;text-indent:0" fill="#2e3436" d="m45 764h1c0.01037-0.00012 0.02079-0.00046 0.03125 0 0.25495 0.0112 0.50987 0.12858 0.6875 0.3125l2.281 2.28 2.312-2.28c0.266-0.23 0.447-0.3 0.688-0.31h1v1c0 0.28647-0.03434 0.55065-0.25 0.75l-2.2812 2.2812 2.25 2.25c0.188 0.19 0.281 0.45 0.281 0.72v1h-1c-0.2653-0.00001-0.53059-0.0931-0.71875-0.28125l-2.281-2.28-2.281 2.28c-0.188 0.19-0.454 0.28-0.719 0.28h-1v-1c-0.000003-0.26529 0.09306-0.53058 0.28125-0.71875l2.2812-2.25-2.281-2.28c-0.21-0.19-0.303-0.47-0.281-0.75v-1z" inkscape:connector-curvature="0"/>
  259. +</g>
  260. +</g>
  261. +</svg>
  262. diff --git a/theme/chrome/messenger/symbolic-icons/critical.svg b/theme/chrome/messenger/symbolic-icons/critical.svg
  263. new file mode 100644
  264. index 0000000..fc594b1
  265. --- /dev/null
  266. +++ b/theme/chrome/messenger/symbolic-icons/critical.svg
  267. @@ -0,0 +1,19 @@
  268. +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  269. +<svg xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" inkscape:version="0.47 r22583" height="16" width="16" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" sodipodi:docname="dialog-warning-symbolic.svg" xmlns:dc="http://purl.org/dc/elements/1.1/">
  270. +<metadata>
  271. +<rdf:RDF>
  272. +<cc:Work rdf:about="">
  273. +<dc:format>image/svg+xml</dc:format>
  274. +<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
  275. +<dc:title>Gnome Symbolic Icon Theme</dc:title>
  276. +</cc:Work>
  277. +</rdf:RDF>
  278. +</metadata>
  279. +<sodipodi:namedview inkscape:zoom="1" borderopacity="1" inkscape:current-layer="layer9" inkscape:cx="-6.85259" guidetolerance="10" inkscape:snap-grids="true" inkscape:window-maximized="0" inkscape:snap-bbox="true" showgrid="false" inkscape:snap-nodes="true" inkscape:snap-global="true" showguides="true" bordercolor="#666666" inkscape:window-x="58" inkscape:guide-bbox="true" objecttolerance="10" inkscape:object-nodes="true" inkscape:window-y="353" inkscape:window-width="1310" inkscape:pageopacity="1" inkscape:snap-to-guides="true" inkscape:pageshadow="2" pagecolor="#555753" gridtolerance="10" inkscape:bbox-paths="false" inkscape:cy="-15.45876" inkscape:window-height="690" showborder="false">
  280. +<inkscape:grid visible="true" enabled="true" spacingy="1px" spacingx="1px" snapvisiblegridlinesonly="true" type="xygrid" empspacing="2"/>
  281. +</sodipodi:namedview>
  282. +<title>Gnome Symbolic Icon Theme</title>
  283. +<g inkscape:label="status" transform="translate(-301,-257)" inkscape:groupmode="layer">
  284. +<path style="color:#2e3436;enable-background:new" d="m308.92 257.09c-0.5255-0.0286-1.0382 0.28305-1.4375 0.96875l-6.25 11.594c-0.53 0.97 0.05 2.35 1.1 2.35h13.156c0.98172 0 1.9031-1.1594 1.2188-2.3438l-6.32-11.54c-0.39872-0.64617-0.94325-1.0026-1.4688-1.0312zm-0.0313 3.9375c0.54448-0.0172 1.0485 0.48677 1.0312 1.0312v3.9375c0.007 0.52831-0.47163 1.0142-1 1.0142-0.52836 0-1.0075-0.48593-1-1.0142v-3.9375c-0.008-0.4666 0.3541-0.91253 0.8125-1 0.0511-0.0145 0.10345-0.025 0.15625-0.0313zm-0.9687 6.9688h2v2h-2v-2z" sodipodi:nodetypes="cccccccccccsccscccccc" inkscape:connector-curvature="0" class="warning" fill="#f57900"/>
  285. +</g>
  286. +</svg>
  287. --
  288. 1.8.5.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement