gtk2/testsuite/gsk/nodeparser/testswitch.node
Timm Bäder 05ca772631 GskTransform: Ignore identity transforms
We often end up with e.g. a scale of 1 or a translation by 0/0. Ignore
those transforms since they don't do anything.
2019-06-03 17:03:02 +02:00

321 lines
8.1 KiB
Plaintext

color {
bounds: 0 0 404 204;
color: rgb(246,245,244);
}
container {
container {
transform {
child: container {
rounded-clip {
child: color {
bounds: -1 -1 50 26;
color: rgb(225,222,219);
}
clip: -1 -1 50 26 / 13;
}
border {
colors: rgb(205,199,194);
outline: -1 -1 50 26 / 13;
}
container {
container {
outset-shadow {
color: rgba(0,0,0,0.1);
dx: 0;
outline: -1 -1 26 26 / 13;
}
outset-shadow {
blur: 2;
color: rgba(0,0,0,0.07);
dx: 0;
outline: -1 -1 26 26 / 13;
}
rounded-clip {
child: linear-gradient {
bounds: 0 0 24 24;
end: 12 24;
start: 12 0;
stops: 0.2 rgb(255,255,255), 0.9 rgb(246,245,244);
}
clip: -1 -1 26 26 / 13;
}
inset-shadow {
color: rgb(255,255,255);
dx: 0;
outline: 0 0 24 24 / 12;
}
}
border {
colors: rgb(191,184,177);
outline: -1 -1 26 26 / 13;
}
}
}
transform: translate(1, 1);
}
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
glyphs: "Disabled";
offset: 145 18;
}
transform: translate(56, 0);
}
}
transform {
child: container {
transform {
child: container {
rounded-clip {
child: color {
bounds: -1 -1 50 26;
color: rgb(53,132,228);
}
clip: -1 -1 50 26 / 13;
}
border {
colors: rgb(24,95,180);
outline: -1 -1 50 26 / 13;
}
transform {
child: container {
container {
outset-shadow {
color: rgba(0,0,0,0.1);
dx: 0;
outline: -1 -1 26 26 / 13;
}
outset-shadow {
blur: 2;
color: rgba(0,0,0,0.07);
dx: 0;
outline: -1 -1 26 26 / 13;
}
rounded-clip {
child: linear-gradient {
bounds: 0 0 24 24;
end: 12 24;
start: 12 0;
stops: 0.2 rgb(255,255,255), 0.9 rgb(246,245,244);
}
clip: -1 -1 26 26 / 13;
}
inset-shadow {
color: rgb(255,255,255);
dx: 0;
outline: 0 0 24 24 / 12;
}
}
border {
colors: rgb(24,95,180);
outline: -1 -1 26 26 / 13;
}
}
transform: translate(24, 0);
}
}
transform: translate(1, 1);
}
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
glyphs: "Enabled";
offset: 147 18;
}
transform: translate(56, 0);
}
}
transform: translate(0, 38);
}
transform {
child: container {
transform {
child: container {
rounded-clip {
child: color {
bounds: -1 -1 50 26;
color: rgb(250,249,248);
}
clip: -1 -1 50 26 / 13;
}
border {
colors: rgb(205,199,194);
outline: -1 -1 50 26 / 13;
}
container {
rounded-clip {
child: color {
bounds: 0 0 24 24;
color: rgb(250,249,248);
}
clip: -1 -1 26 26 / 13;
}
border {
colors: rgb(205,199,194);
outline: -1 -1 26 26 / 13;
}
}
}
transform: translate(1, 1);
}
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
glyphs: "Disabled";
offset: 145 18;
}
transform: translate(56, 0);
}
}
transform: translate(0, 76);
}
transform {
child: container {
transform {
child: container {
rounded-clip {
child: color {
bounds: -1 -1 50 26;
color: rgb(250,249,248);
}
clip: -1 -1 50 26 / 13;
}
border {
colors: rgb(205,199,194);
outline: -1 -1 50 26 / 13;
}
transform {
child: container {
rounded-clip {
child: color {
bounds: 0 0 24 24;
color: rgb(250,249,248);
}
clip: -1 -1 26 26 / 13;
}
border {
colors: rgb(205,199,194);
outline: -1 -1 26 26 / 13;
}
}
transform: translate(24, 0);
}
}
transform: translate(1, 1);
}
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
glyphs: "Enabled";
offset: 147 18;
}
transform: translate(56, 0);
}
}
transform: translate(0, 114);
}
transform {
child: container {
transform {
child: container {
rounded-clip {
child: color {
bounds: -1 -1 50 26;
color: rgb(225,222,219);
}
clip: -1 -1 50 26 / 13;
}
border {
colors: rgb(205,199,194);
outline: -1 -1 50 26 / 13;
}
container {
container {
outset-shadow {
color: rgba(0,0,0,0.1);
dx: 0;
outline: -1 -1 26 26 / 13;
}
outset-shadow {
blur: 2;
color: rgba(0,0,0,0.07);
dx: 0;
outline: -1 -1 26 26 / 13;
}
rounded-clip {
child: linear-gradient {
bounds: 0 0 24 24;
end: 12 24;
start: 12 0;
stops: 0.2 rgb(255,255,255), 0.9 rgb(246,245,244);
}
clip: -1 -1 26 26 / 13;
}
inset-shadow {
color: rgb(255,255,255);
dx: 0;
outline: 0 0 24 24 / 12;
}
}
border {
colors: rgb(191,184,177);
outline: -1 -1 26 26 / 13;
}
}
}
transform: translate(1, 1);
}
transform {
child: text {
color: rgb(46,52,54);
font: "Cantarell 11";
glyphs: "Disabled";
offset: 123 18;
}
transform: translate(78, 0);
}
transform {
child: transform {
child: container {
container {
outset-shadow {
color: rgba(0,0,0,0.1);
dx: 0;
outline: -1 -1 16 16 / 3;
}
outset-shadow {
blur: 2;
color: rgba(0,0,0,0.07);
dx: 0;
outline: -1 -1 16 16 / 3;
}
linear-gradient {
bounds: 0 0 14 14;
end: 7 14;
start: 7 0;
stops: 0.2 rgb(255,255,255), 0.9 rgb(246,245,244);
}
inset-shadow {
color: rgb(255,255,255);
dx: 0;
outline: 0 0 14 14 / 2;
}
}
border {
colors: rgb(191,184,177);
outline: -1 -1 16 16 / 3;
}
}
transform: translate(1, 6);
}
transform: translate(388, 0);
}
}
transform: translate(0, 152);
}
}