Skip to content

Commit

Permalink
Sharper visual + fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyan11 committed Aug 2, 2024
1 parent 4ba0e54 commit f8082c0
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 101 deletions.
142 changes: 66 additions & 76 deletions src/Pyramid-Bloc/PyramidBlocPlugin.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -16,80 +16,71 @@ PyramidBlocPlugin class >> blocVisibilityGone [
"This class has been generated using Pyramid.
By: YannLEGOFF
2024-08-01 18:23:58"
2024-08-02 09:26:40"

<pyStash>
^ [ {(BlElement new
clipChildren: false;
constraintsDo: [:constraints | constraints horizontal fitContent.
constraints vertical fitContent.
constraints padding: (BlInsets top: 0.0 right: 35.0 bottom: 0.0 left: 0.0) ];
layout: BlFrameLayout new;
^ [ | blinsets1 |
blinsets1 := BlInsets top: 0.0 right: 2.0 bottom: 0.0 left: 0.0.
{(BlElement new
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal exact: 24.0.
constraints vertical exact: 12.0 ];
layout: BlLinearLayout horizontal;
addChildren: {(BlElement new
background: (BlPaintBackground new
paint: (BlColorPaint new
color: (Color r: 0.823069403714565 g: 0.823069403714565 b: 0.823069403714565 alpha: 1.0);
color: (Color r: 0.5728250244379277 g: 0.8191593352883676 b: 1.0 alpha: 1.0);
yourself);
opacity: 1.0;
yourself);
border: (BlBorderBuilder new
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
width: 3;
dashArray: {6};
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints vertical exact: 40.0.
constraints frame horizontal alignCenter.
constraints frame vertical alignCenter ];
id: #C;
constraintsDo: [:constraints | constraints horizontal matchParent.
constraints vertical matchParent.
constraints margin: blinsets1 ];
id: #B;
yourself) .
(BlElement new
background: (BlPaintBackground new
paint: (BlColorPaint new
color: (Color r: 0.5728250244379277 g: 0.8191593352883676 b: 1.0 alpha: 1.0);
yourself);
opacity: 1.0;
yourself);
border: (BlBorderBuilder new
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal fitContent.
constraints vertical fitContent.
constraints frame horizontal alignCenter.
constraints frame vertical alignCenter ];
layout: BlLinearLayout horizontal;
addChildren: {(BlElement new
background: (BlPaintBackground new
paint: (BlColorPaint new
color: (Color r: 0.5728250244379277 g: 0.8191593352883676 b: 1.0 alpha: 1.0);
yourself);
opacity: 1.0;
constraintsDo: [:constraints | constraints horizontal matchParent.
constraints vertical matchParent.
constraints margin: blinsets1 ];
id: #C;
yourself) .
(BlElement new
background: (BlPaintBackground new
paint: (BlColorPaint new
color: (Color r: 0.5728250244379277 g: 0.8191593352883676 b: 1.0 alpha: 1.0);
yourself);
border: (BlBorderBuilder new
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
width: 3;
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal exact: 25.0 ];
id: #B;
yourself) .
(BlElement new
background: (BlPaintBackground new
paint: (BlColorPaint new
color: (Color r: 0.5728250244379277 g: 0.8191593352883676 b: 1.0 alpha: 1.0);
yourself);
opacity: 1.0;
opacity: 1.0;
yourself);
border: (BlBorderBuilder new
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
border: (BlBorderBuilder new
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
width: 3;
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal exact: 25.0.
constraints margin: (BlInsets top: 0.0 right: 0.0 bottom: 0.0 left: 10.0) ];
id: #D;
yourself)};
id: #A;
build);
geometry: BlRectangleGeometry new;
visibility: BlVisibility hidden;
constraintsDo: [:constraints | constraints horizontal matchParent.
constraints vertical matchParent ];
id: #D;
yourself)};
id: #group;
id: #A;
yourself)} ] value
]

Expand All @@ -98,15 +89,15 @@ PyramidBlocPlugin class >> blocVisibilityHidden [
"This class has been generated using Pyramid.
By: YannLEGOFF
2024-08-01 18:17:49"
2024-08-02 09:25:56"

<pyStash>
^ [ | blinsets1 |
blinsets1 := BlInsets top: 0.0 right: 10.0 bottom: 0.0 left: 0.0.
blinsets1 := BlInsets top: 0.0 right: 2.0 bottom: 0.0 left: 0.0.
{(BlElement new
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal fitContent.
constraints vertical fitContent ];
constraintsDo: [:constraints | constraints horizontal exact: 24.0.
constraints vertical exact: 12.0 ];
layout: BlLinearLayout horizontal;
addChildren: {(BlElement new
background: (BlPaintBackground new
Expand All @@ -119,29 +110,28 @@ blinsets1 := BlInsets top: 0.0 right: 10.0 bottom: 0.0 left: 0.0.
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
width: 3;
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal exact: 25.0.
constraintsDo: [:constraints | constraints horizontal matchParent.
constraints vertical matchParent.
constraints margin: blinsets1 ];
id: #B;
yourself) .
(BlElement new
background: (BlPaintBackground new
paint: (BlColorPaint new
color: (Color r: 0.823069403714565 g: 0.823069403714565 b: 0.823069403714565 alpha: 1.0);
color: (Color r: 0.863147605083089 g: 0.863147605083089 b: 0.863147605083089 alpha: 1.0);
yourself);
opacity: 1.0;
yourself);
border: (BlBorderBuilder new
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
width: 3;
dashArray: {6};
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal exact: 25.0.
constraintsDo: [:constraints | constraints horizontal matchParent.
constraints vertical matchParent.
constraints margin: blinsets1 ];
id: #C;
yourself) .
Expand All @@ -156,10 +146,10 @@ blinsets1 := BlInsets top: 0.0 right: 10.0 bottom: 0.0 left: 0.0.
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
width: 3;
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal exact: 25.0 ];
constraintsDo: [:constraints | constraints horizontal matchParent.
constraints vertical matchParent ];
id: #D;
yourself)};
id: #A;
Expand All @@ -171,15 +161,15 @@ PyramidBlocPlugin class >> blocVisibilityVisible [
"This class has been generated using Pyramid.
By: YannLEGOFF
2024-08-01 18:18:10"
2024-08-02 09:24:49"

<pyStash>
^ [ | blinsets1 |
blinsets1 := BlInsets top: 0.0 right: 10.0 bottom: 0.0 left: 0.0.
blinsets1 := BlInsets top: 0.0 right: 2.0 bottom: 0.0 left: 0.0.
{(BlElement new
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal fitContent.
constraints vertical fitContent ];
constraintsDo: [:constraints | constraints horizontal exact: 24.0.
constraints vertical exact: 12.0 ];
layout: BlLinearLayout horizontal;
addChildren: {(BlElement new
background: (BlPaintBackground new
Expand All @@ -192,10 +182,10 @@ blinsets1 := BlInsets top: 0.0 right: 10.0 bottom: 0.0 left: 0.0.
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
width: 3;
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal exact: 25.0.
constraintsDo: [:constraints | constraints horizontal matchParent.
constraints vertical matchParent.
constraints margin: blinsets1 ];
id: #B;
yourself) .
Expand All @@ -210,10 +200,10 @@ blinsets1 := BlInsets top: 0.0 right: 10.0 bottom: 0.0 left: 0.0.
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
width: 3;
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal exact: 25.0.
constraintsDo: [:constraints | constraints horizontal matchParent.
constraints vertical matchParent.
constraints margin: blinsets1 ];
id: #C;
yourself) .
Expand All @@ -228,10 +218,10 @@ blinsets1 := BlInsets top: 0.0 right: 10.0 bottom: 0.0 left: 0.0.
paint: (BlColorPaint new
color: (Color r: 0.0 g: 0.0 b: 0.0 alpha: 1.0);
yourself);
width: 3;
build);
geometry: BlRectangleGeometry new;
constraintsDo: [:constraints | constraints horizontal exact: 25.0 ];
constraintsDo: [:constraints | constraints horizontal matchParent.
constraints vertical matchParent ];
id: #D;
yourself)};
id: #A;
Expand Down
25 changes: 0 additions & 25 deletions src/Pyramid-Tests/PyramidVisibilityInputPresenterTest.class.st

This file was deleted.

0 comments on commit f8082c0

Please sign in to comment.