Skip to content

Instantly share code, notes, and snippets.

@wrl
Created September 28, 2013 15:13
Show Gist options
  • Save wrl/6743028 to your computer and use it in GitHub Desktop.
Save wrl/6743028 to your computer and use it in GitHub Desktop.
a compiled rutabaga stylesheet
/**
* rutabaga: an OpenGL widget toolkit
* Copyright (c) 2013 William Light.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* this is an autogenerated file.
* you probably don't want to edit this.
*/
#include "rutabaga/rutabaga.h"
#include "rutabaga/element.h"
#include "rutabaga/style.h"
#include "styles/default/fonts/open_sans/OpenSans-Regular.ttf.h"
#include "styles/default/assets/tile.tga.h"
static struct rtb_style_font_definition open_sans_normal __attribute__((unused)) = {
.family = "Open Sans",
.weight = "normal",
.location = RTB_ASSET_EMBEDDED,
.compression = RTB_ASSET_UNCOMPRESSED,
.embedded.base = OPEN_SANS_NORMAL,
.embedded.size = sizeof(OPEN_SANS_NORMAL)
};
struct rtb_style default_style[] = {
{"net.illest.rutabaga.widgets.patchbay",
.properties = {
[RTB_DRAW_NORMAL] = (struct rtb_style_property_definition []) {
{"background-image",
.type = RTB_STYLE_PROP_TEXTURE,
.texture = {
.location = RTB_ASSET_EMBEDDED,
.compression = RTB_ASSET_UNCOMPRESSED,
.embedded.base = ASSETS_TILE_TGA,
.embedded.size = sizeof(ASSETS_TILE_TGA),
.w = 136,
.h = 136}},
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.0,
.g = 0.0,
.b = 0.0,
.a = 1.0}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.050980392156862744,
.g = 0.050980392156862744,
.b = 0.058823529411764705,
.a = 1.0}},
{NULL}
},
[RTB_DRAW_FOCUS] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_HOVER] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_ACTIVE] = (struct rtb_style_property_definition []) {{NULL}}
}
},
{"net.illest.rutabaga.widgets.patchbay.node",
.properties = {
[RTB_DRAW_NORMAL] = (struct rtb_style_property_definition []) {
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.09411764705882353,
.g = 0.09411764705882353,
.b = 0.10980392156862745,
.a = 0.9}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 1.0,
.g = 1.0,
.b = 1.0,
.a = 1.0}},
{NULL}
},
[RTB_DRAW_FOCUS] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_HOVER] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_ACTIVE] = (struct rtb_style_property_definition []) {{NULL}}
}
},
{"net.illest.rutabaga.widgets.patchbay.port",
.properties = {
[RTB_DRAW_NORMAL] = (struct rtb_style_property_definition []) {
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.25098039215686274,
.g = 0.30980392156862746,
.b = 0.23529411764705882,
.a = 0.9}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 1.0,
.g = 1.0,
.b = 1.0,
.a = 1.0}},
{NULL}
},
[RTB_DRAW_FOCUS] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_HOVER] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_ACTIVE] = (struct rtb_style_property_definition []) {{NULL}}
}
},
{"net.illest.rutabaga.widgets.button",
.properties = {
[RTB_DRAW_NORMAL] = (struct rtb_style_property_definition []) {
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.25098039215686274,
.g = 0.30980392156862746,
.b = 0.23529411764705882,
.a = 1.0}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 1.0,
.g = 1.0,
.b = 1.0,
.a = 1.0}},
{NULL}
},
[RTB_DRAW_FOCUS] = (struct rtb_style_property_definition []) {
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.23529411764705882,
.g = 0.25098039215686274,
.b = 0.30980392156862746,
.a = 1.0}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 1.0,
.g = 1.0,
.b = 1.0,
.a = 0.7}},
{NULL}
},
[RTB_DRAW_HOVER] = (struct rtb_style_property_definition []) {
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.3607843137254902,
.g = 0.4392156862745098,
.b = 0.2980392156862745,
.a = 1.0}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 1.0,
.g = 1.0,
.b = 1.0,
.a = 1.0}},
{NULL}
},
[RTB_DRAW_ACTIVE] = (struct rtb_style_property_definition []) {
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.21176470588235294,
.g = 0.25882352941176473,
.b = 0.19607843137254902,
.a = 1.0}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 1.0,
.g = 1.0,
.b = 1.0,
.a = 0.7}},
{NULL}
}
}
},
{"net.illest.rutabaga.widgets.knob",
.properties = {
[RTB_DRAW_NORMAL] = (struct rtb_style_property_definition []) {
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.25098039215686274,
.g = 0.30980392156862746,
.b = 0.23529411764705882,
.a = 1.0}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.09411764705882353,
.g = 0.09411764705882353,
.b = 0.10980392156862745,
.a = 1.0}},
{NULL}
},
[RTB_DRAW_FOCUS] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_HOVER] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_ACTIVE] = (struct rtb_style_property_definition []) {{NULL}}
}
},
{"net.illest.rutabaga.window",
.properties = {
[RTB_DRAW_NORMAL] = (struct rtb_style_property_definition []) {
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.09411764705882353,
.g = 0.09411764705882353,
.b = 0.10980392156862745,
.a = 1.0}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 1.0,
.g = 1.0,
.b = 1.0,
.a = 1.0}},
{NULL}
},
[RTB_DRAW_FOCUS] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_HOVER] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_ACTIVE] = (struct rtb_style_property_definition []) {{NULL}}
}
},
{"net.illest.rutabaga.element",
.properties = {
[RTB_DRAW_NORMAL] = (struct rtb_style_property_definition []) {
{"background-color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 0.25098039215686274,
.g = 0.30980392156862746,
.b = 0.23529411764705882,
.a = 1.0}},
{"color",
.type = RTB_STYLE_PROP_COLOR,
.color = {
.r = 1.0,
.g = 1.0,
.b = 1.0,
.a = 1.0}},
{NULL}
},
[RTB_DRAW_FOCUS] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_HOVER] = (struct rtb_style_property_definition []) {{NULL}},
[RTB_DRAW_ACTIVE] = (struct rtb_style_property_definition []) {{NULL}}
}
},
{NULL}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment