Adding MindTheDark version 2025-03-17 (c5e286f).
Signed-off-by: Daniel Baumann <daniel@debian.org>
BIN
templates/55/MindTheDark/images/apple-touch-icon.png
Normal file
After Width: | Height: | Size: 6.2 KiB |
BIN
templates/55/MindTheDark/images/button-css.png
Normal file
After Width: | Height: | Size: 297 B |
BIN
templates/55/MindTheDark/images/button-donate.gif
Normal file
After Width: | Height: | Size: 187 B |
BIN
templates/55/MindTheDark/images/button-dw.png
Normal file
After Width: | Height: | Size: 398 B |
BIN
templates/55/MindTheDark/images/button-html5.png
Normal file
After Width: | Height: | Size: 305 B |
BIN
templates/55/MindTheDark/images/button-php.gif
Normal file
After Width: | Height: | Size: 207 B |
BIN
templates/55/MindTheDark/images/button-rss.png
Normal file
After Width: | Height: | Size: 178 B |
BIN
templates/55/MindTheDark/images/favicon.ico
Normal file
After Width: | Height: | Size: 7.2 KiB |
5
templates/55/MindTheDark/images/license.txt
Normal file
|
@ -0,0 +1,5 @@
|
|||
Icons for: sitetools.png
|
||||
Icon set: Dusseldorf
|
||||
Designer: pc.de
|
||||
License: Creative Commons Attribution License [http://creativecommons.org/licenses/by/3.0/]
|
||||
URL: http://pc.de/icons/#Dusseldorf
|
BIN
templates/55/MindTheDark/images/logo.png
Normal file
After Width: | Height: | Size: 3.7 KiB |
8
templates/55/MindTheDark/images/page-background.svg
Normal file
|
@ -0,0 +1,8 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
|
||||
<linearGradient id="g" x1="0%" y1="0%" x2="0%" y2="100%">
|
||||
<stop offset="0" stop-color="#dddddd" />
|
||||
<stop offset="0.1" stop-color="#eeeeee" />
|
||||
<stop offset="0.4" stop-color="#fbfaf9" />
|
||||
</linearGradient>
|
||||
<rect x="0" y="0" width="100%" height="100%" fill="url(#g)" />
|
||||
</svg>
|
After Width: | Height: | Size: 376 B |
BIN
templates/55/MindTheDark/images/page-gradient.png
Normal file
After Width: | Height: | Size: 209 B |
123
templates/55/MindTheDark/images/pagetools-build.php
Normal file
|
@ -0,0 +1,123 @@
|
|||
<?php
|
||||
/**
|
||||
* This script generates a sprite from the unprocessed pagetool icons by combining them
|
||||
* and overlaying a color layer for the active state.
|
||||
*
|
||||
* This script requires a current libGD to be available.
|
||||
*
|
||||
* The color for the active state is read from the style.ini's __link__ replacement
|
||||
*
|
||||
* The final sprite is optimized with optipng if available.
|
||||
*
|
||||
* @author Andreas Gohr <andi@splitbrain.org>
|
||||
* @todo Maybe add some more error checking
|
||||
*/
|
||||
$GAMMA = 0.8;
|
||||
$OPTIPNG = '/usr/bin/optipng';
|
||||
|
||||
if('cli' != php_sapi_name()) die('please run from commandline');
|
||||
|
||||
// load input images
|
||||
$input = glob('pagetools/*.png');
|
||||
sort($input);
|
||||
$cnt = count($input);
|
||||
if(!$cnt){
|
||||
die("No input images found. This script needs to be called from within the image directory!\n");
|
||||
}
|
||||
|
||||
// create destination image
|
||||
$DST = imagecreatetruecolor(30,$cnt*45*2);
|
||||
imagesavealpha($DST, true);
|
||||
$C_trans = imagecolorallocatealpha($DST, 0, 0, 0, 127);
|
||||
imagefill($DST, 0, 0, $C_trans);
|
||||
|
||||
// load highlight color from style.ini
|
||||
$ini = parse_ini_file('../style.ini',true);
|
||||
$COLOR = hex2rgb($ini['replacements']['__link__']);
|
||||
$C_active = imagecolorallocate($DST, $COLOR['r'],$COLOR['g'],$COLOR['b']);
|
||||
|
||||
// add all the icons to the sprite image
|
||||
for($i=0; $i<$cnt; $i++){
|
||||
$base = $i*90;
|
||||
|
||||
$IN = imagecreatefrompng($input[$i]);
|
||||
imagesavealpha($IN, true);
|
||||
imagecolorscale($IN,$GAMMA);
|
||||
imagecopy($DST,$IN, 0,$base, 0,0, 30,30);
|
||||
imagedestroy($IN);
|
||||
|
||||
$IN = imagecreatefrompng($input[$i]);
|
||||
imagesavealpha($IN, true);
|
||||
imagecolorscale($IN,$GAMMA);
|
||||
imagecopy($DST,$IN, 0,$base+45, 0,0, 30,30);
|
||||
imagedestroy($IN);
|
||||
|
||||
imagelayereffect($DST, IMG_EFFECT_OVERLAY);
|
||||
imagefilledrectangle($DST, 0,$base+45, 30,$base+45+30, $C_active);
|
||||
imagelayereffect($DST, IMG_EFFECT_NORMAL);
|
||||
}
|
||||
|
||||
// output sprite
|
||||
imagepng($DST,'pagetools-sprite.png');
|
||||
imagedestroy($DST);
|
||||
|
||||
// optimize if possible
|
||||
if(is_executable($OPTIPNG)){
|
||||
system("$OPTIPNG -o5 'pagetools-sprite.png'");
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert a hex color code to an rgb array
|
||||
*/
|
||||
function hex2rgb($hex) {
|
||||
// strip hash
|
||||
$hex = str_replace('#', '', $hex);
|
||||
|
||||
// normalize short codes
|
||||
if(strlen($hex) == 3){
|
||||
$hex = substr($hex,0,1).
|
||||
substr($hex,0,1).
|
||||
substr($hex,1,1).
|
||||
substr($hex,1,1).
|
||||
substr($hex,2,1).
|
||||
substr($hex,2,1);
|
||||
}
|
||||
|
||||
// calc rgb
|
||||
return array(
|
||||
'r' => hexdec(substr($hex, 0, 2)),
|
||||
'g' => hexdec(substr($hex, 2, 2)),
|
||||
'b' => hexdec(substr($hex, 4, 2))
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Scale (darken/lighten) a given image
|
||||
*
|
||||
* @param resource $img The truetype GD image to work on
|
||||
* @param float $scale Scale the colors by this value ( <1 darkens, >1 lightens)
|
||||
*/
|
||||
function imagecolorscale(&$img, $scale){
|
||||
$w = imagesx($img);
|
||||
$h = imagesy($img);
|
||||
|
||||
imagealphablending($img, false);
|
||||
for($x = 0; $x < $w; $x++){
|
||||
for($y = 0; $y < $h; $y++){
|
||||
$rgba = imagecolorat($img, $x, $y);
|
||||
$a = ($rgba >> 24) & 0xFF;
|
||||
$r = ($rgba >> 16) & 0xFF;
|
||||
$g = ($rgba >> 8) & 0xFF;
|
||||
$b = $rgba & 0xFF;
|
||||
|
||||
$r = max(min(round($r*$scale),255),0);
|
||||
$g = max(min(round($g*$scale),255),0);
|
||||
$b = max(min(round($b*$scale),255),0);
|
||||
|
||||
$color = imagecolorallocatealpha($img, $r, $g, $b, $a);
|
||||
imagesetpixel($img, $x, $y, $color);
|
||||
}
|
||||
}
|
||||
imagealphablending($img, true);
|
||||
}
|
||||
|
BIN
templates/55/MindTheDark/images/pagetools-sprite.png
Normal file
After Width: | Height: | Size: 7.6 KiB |
BIN
templates/55/MindTheDark/images/pagetools/00_default.png
Normal file
After Width: | Height: | Size: 494 B |
BIN
templates/55/MindTheDark/images/pagetools/01_edit.png
Normal file
After Width: | Height: | Size: 519 B |
BIN
templates/55/MindTheDark/images/pagetools/02_create.png
Normal file
After Width: | Height: | Size: 580 B |
BIN
templates/55/MindTheDark/images/pagetools/03_draft.png
Normal file
After Width: | Height: | Size: 592 B |
BIN
templates/55/MindTheDark/images/pagetools/04_show.png
Normal file
After Width: | Height: | Size: 321 B |
BIN
templates/55/MindTheDark/images/pagetools/05_source.png
Normal file
After Width: | Height: | Size: 478 B |
BIN
templates/55/MindTheDark/images/pagetools/06_revert.png
Normal file
After Width: | Height: | Size: 462 B |
BIN
templates/55/MindTheDark/images/pagetools/07_revisions.png
Normal file
After Width: | Height: | Size: 769 B |
BIN
templates/55/MindTheDark/images/pagetools/08_backlink.png
Normal file
After Width: | Height: | Size: 527 B |
BIN
templates/55/MindTheDark/images/pagetools/09_subscribe.png
Normal file
After Width: | Height: | Size: 374 B |
BIN
templates/55/MindTheDark/images/pagetools/10_top.png
Normal file
After Width: | Height: | Size: 297 B |
BIN
templates/55/MindTheDark/images/pagetools/11_mediamanager.png
Normal file
After Width: | Height: | Size: 320 B |
BIN
templates/55/MindTheDark/images/pagetools/12_back.png
Normal file
After Width: | Height: | Size: 288 B |
4
templates/55/MindTheDark/images/pagetools/license.txt
Normal file
|
@ -0,0 +1,4 @@
|
|||
Icon set: iPhone toolbar icons
|
||||
Designer: TheWorkingGroup.ca
|
||||
License: Creative Commons Attribution-Share Alike License [http://creativecommons.org/licenses/by-sa/3.0/]
|
||||
URL: http://blog.twg.ca/2009/09/free-iphone-toolbar-icons/
|
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16" /></svg>
|
After Width: | Height: | Size: 357 B |
1
templates/55/MindTheDark/images/plugin_note/note.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M14,10H19.5L14,4.5V10M5,3H15L21,9V19C21,20.1 20.1,21 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3M5,5V19H19V12H12V5H5Z" /></svg>
|
After Width: | Height: | Size: 416 B |
1
templates/55/MindTheDark/images/plugin_note/tip.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M12,2C15.87,2 19,5.13 19,9C19,11.38 17.81,13.47 16,14.74V17C16,17.55 15.55,18 15,18H9C8.45,18 8,17.55 8,17V14.74C6.19,13.47 5,11.38 5,9C5,5.13 8.13,2 12,2M9,21V20H15V21C15,21.55 14.55,22 14,22H10C9.45,22 9,21.55 9,21M12,4C9.24,4 7,6.24 7,9C7,11.05 8.23,12.81 10,13.58V16H14V13.58C15.77,12.81 17,11.05 17,9C17,6.24 14.76,4 12,4Z" /></svg>
|
After Width: | Height: | Size: 622 B |
1
templates/55/MindTheDark/images/plugin_note/warning.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="24" height="24" viewBox="0 0 24 24"><path d="M8.27,3L3,8.27V15.73L8.27,21H15.73C17.5,19.24 21,15.73 21,15.73V8.27L15.73,3M9.1,5H14.9L19,9.1V14.9L14.9,19H9.1L5,14.9V9.1M11,15H13V17H11V15M11,7H13V13H11V7" /></svg>
|
After Width: | Height: | Size: 451 B |
BIN
templates/55/MindTheDark/images/search-dark.png
Normal file
After Width: | Height: | Size: 214 B |
BIN
templates/55/MindTheDark/images/search.png
Normal file
After Width: | Height: | Size: 307 B |
2
templates/55/MindTheDark/images/theme.svg
Normal file
|
@ -0,0 +1,2 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
||||
<path d="M19,3H14V5H19V18L14,12V21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M10,18H5L10,12M10,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H10V23H12V1H10V3Z" ></svg>
|
After Width: | Height: | Size: 242 B |
BIN
templates/55/MindTheDark/images/toc-arrows-dark.png
Normal file
After Width: | Height: | Size: 152 B |
BIN
templates/55/MindTheDark/images/toc-arrows.png
Normal file
After Width: | Height: | Size: 225 B |
BIN
templates/55/MindTheDark/images/toc-bullet.png
Normal file
After Width: | Height: | Size: 113 B |
BIN
templates/55/MindTheDark/images/usertools.png
Normal file
After Width: | Height: | Size: 1.4 KiB |