tazpanel rev 462
Fix "Confirm break", add Improvement script, tiny edits.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Apr 18 16:26:58 2015 +0300 (2015-04-18) |
parents | 64df20b58acc |
children | 7ca14d55e705 |
files | index.cgi lib/tazpanel.js styles/default/header.html styles/default/tweaks.css |
line diff
1.1 --- a/index.cgi Mon Apr 13 17:04:00 2015 +0200 1.2 +++ b/index.cgi Sat Apr 18 16:26:58 2015 +0300 1.3 @@ -209,6 +209,8 @@ 1.4 syntax_highlighter xlog ;; 1.5 *dmesg.log) 1.6 syntax_highlighter kernel ;; 1.7 + */receipt) 1.8 + syntax_highlighter sh ;; 1.9 *) 1.10 cat | htmlize ;; 1.11 esac < $file
2.1 --- a/lib/tazpanel.js Mon Apr 13 17:04:00 2015 +0200 2.2 +++ b/lib/tazpanel.js Sat Apr 18 16:26:58 2015 +0300 2.3 @@ -12,7 +12,7 @@ 2.4 2.5 // Confirm page loading break 2.6 function confirmExit() { 2.7 - return "$(_ 'Confirm break')"; 2.8 + return document.getElementById('confirmBreak').innerText; 2.9 } 2.10 // Attach event handler 2.11 window.onbeforeunload = confirmExit; 2.12 @@ -453,3 +453,18 @@ 2.13 } 2.14 } 2.15 } 2.16 + 2.17 + 2.18 +// 2.19 +// Improving packages by the community effort. 2.20 +// 2.21 + 2.22 +function improveAction() { 2.23 + improveType = document.getElementById('improveType'); 2.24 + improveText = document.getElementById('improveText'); 2.25 + 2.26 + if (improveType.value == '') 2.27 + improveText.value = ''; 2.28 + else 2.29 + improveText.value = document.getElementById(improveType.value).innerText; 2.30 +}
3.1 --- a/styles/default/header.html Mon Apr 13 17:04:00 2015 +0200 3.2 +++ b/styles/default/header.html Sat Apr 18 16:26:58 2015 +0300 3.3 @@ -13,6 +13,7 @@ 3.4 </head> 3.5 <body class="$rootclass"> 3.6 <script type="text/javascript">setColorTheme(); setBaseFont();</script> 3.7 +<div id="confirmBreak" style="display:none">$(_ 'Confirm break')</div> 3.8 3.9 <header> 3.10 <h1 data-icon="tazpanel">$TITLEĀ </h1>
4.1 --- a/styles/default/tweaks.css Mon Apr 13 17:04:00 2015 +0200 4.2 +++ b/styles/default/tweaks.css Sat Apr 18 16:26:58 2015 +0300 4.3 @@ -184,6 +184,9 @@ 4.4 * Buttons with icons * 4.5 **********************/ 4.6 4.7 +.light a[data-icon]::before, .light button[data-icon]::before 4.8 +{ color: #333; } 4.9 + 4.10 .light button[data-icon]::before { 4.11 text-shadow: 0 1px 0 hsla(0, 0%, 100%, 0.9); } 4.12 4.13 @@ -193,24 +196,27 @@ 4.14 -webkit-background-clip: text; 4.15 -webkit-text-fill-color: transparent; 4.16 } 4.17 -/*.light a[data-icon]:before { color: #333; }*/ 4.18 + 4.19 a[data-icon] { white-space: pre-line; } 4.20 4.21 [data-icon="cancel"]::before, [data-icon="delete"]::before, 4.22 [data-icon="remove"]::before, [data-icon="stop"]:not([disabled])::before, 4.23 [data-img="help"]::before, [data-img="man"]::before, 4.24 [data-img="off"]::before, [data-img="remove"]::before, 4.25 -[data-img="stop"]::before, [data-icon="pkgib"]::before {color:#dc322f} /*red*/ 4.26 +[data-img="stop"]::before, [data-icon="pkgib"]::before 4.27 +{color:#dc322f!important} /*red*/ 4.28 4.29 [data-icon="restart"]:not([disabled])::before, [data-img="conf"]::before, 4.30 -[data-img="slitaz"]::before {color:#cb4b16} /*orange*/ 4.31 +[data-img="slitaz"]::before 4.32 +{color:#cb4b16!important} /*orange*/ 4.33 4.34 [data-icon="ok"]::before, [data-icon="run"]::before, 4.35 [data-icon="start"]:not([disabled])::before, [data-img="on"]::before, 4.36 [data-img="opt"]::before, [data-img="run"]::before, [data-icon="pkgi"]::before, 4.37 -[data-img="user"]::before {color:#859900} /*green*/ 4.38 +[data-img="user"]::before {color:#859900!important} /*green*/ 4.39 4.40 -[data-img="web"]::before {color:#268bd2}, [data-icon="pkg"]::before /*blue*/ 4.41 +[data-img="web"]::before, [data-icon="pkg"]::before 4.42 +{color:#268bd2!important} /*blue*/ 4.43 4.44 /* disabled buttons with gray icons */ 4.45 /*.light [disabled][data-icon]::before {color:#888}