Browse Source

initial check-in

pull/1/head
Leonard Ritter 8 years ago
commit
39c540ac22
6 changed files with 1212 additions and 0 deletions
  1. +12
    -0
      .hgignore
  2. +21
    -0
      LICENSE
  3. +6
    -0
      README.md
  4. +1055
    -0
      blendish.h
  5. BIN
      demo.png
  6. +118
    -0
      icons_template.svg

+ 12
- 0
.hgignore View File

@@ -0,0 +1,12 @@
syntax: glob

.sconsign.dblite
.settings
*.orig
.project
.pydevproject

syntax: regexp

^build
^dist

+ 21
- 0
LICENSE View File

@@ -0,0 +1,21 @@
Blendish - Blender 2.5 UI based theming functions for NanoVG

Copyright (c) 2014 Leonard Ritter <leonard.ritter@duangle.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

+ 6
- 0
README.md View File

@@ -0,0 +1,6 @@
Blendish is a small collection of drawing functions for NanoVG, designed to
replicate the look of the Blender 2.5+ User Interface. You can use these
functions to theme your UI library. Some metric constants for faithful
reproduction are also included.



+ 1055
- 0
blendish.h
File diff suppressed because it is too large
View File


BIN
demo.png View File

Before After
Width: 522  |  Height: 383  |  Size: 45KB

+ 118
- 0
icons_template.svg View File

@@ -0,0 +1,118 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->

<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg3393"
version="1.1"
inkscape:version="0.48.3.1 r9886"
width="602"
height="640"
sodipodi:docname="icons.svg">
<metadata
id="metadata3399">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3397" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1056"
id="namedview3395"
showgrid="true"
inkscape:zoom="11.5375"
inkscape:cx="49.345187"
inkscape:cy="618.67792"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:current-layer="svg3393">
<inkscape:grid
type="xygrid"
id="grid3403"
empspacing="21"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true"
originx="3px"
originy="2px" />
</sodipodi:namedview>
<rect
style="color:#000000;fill:#000000;fill-opacity:0.27058824;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="rect3415"
width="20"
height="20"
x="45"
y="8" />
<rect
y="8"
x="24"
height="20"
width="20"
id="rect3413"
style="color:#000000;fill:#000000;fill-opacity:0.27058824;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<rect
style="color:#000000;fill:#000000;fill-opacity:0.27058824;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="rect3411"
width="20"
height="20"
x="3"
y="8" />
<rect
style="color:#000000;fill:#ff0066;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="rect3405"
width="16"
height="16"
x="5"
y="10" />
<rect
y="10"
x="26"
height="16"
width="16"
id="rect3407"
style="color:#000000;fill:#d45500;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<rect
style="color:#000000;fill:#00ff00;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="rect3409"
width="16"
height="16"
x="47"
y="10" />
<rect
y="29"
x="3"
height="20"
width="20"
id="rect3417"
style="color:#000000;fill:#000000;fill-opacity:0.27058824;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
<rect
style="color:#000000;fill:#000000;fill-opacity:0.27058824;fill-rule:evenodd;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
id="rect3419"
width="20"
height="20"
x="24"
y="29" />
</svg>

Loading…
Cancel
Save