Skip to content

Commit

Permalink
reworked coloring
Browse files Browse the repository at this point in the history
  • Loading branch information
JanBliznicenko committed Oct 15, 2023
1 parent 7b7cd51 commit 51284f9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions repository/OpenPonk-ClassEditor/OPUmlClassItemLabel.class.st
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Class {
#name : #OPUmlClassItemLabel,
#superclass : #OPUmlClassifierItemLabel,
#traits : 'OPTDIColoredAsStroke',
#classTraits : 'OPTDIColoredAsStroke classTrait',
#traits : 'OPTDIColoredAsFont',
#classTraits : 'OPTDIColoredAsFont classTrait',
#category : #'OpenPonk-ClassEditor-DiagramElements'
}

Expand Down
6 changes: 3 additions & 3 deletions repository/OpenPonk-ClassEditor/OPUmlClassifierShape.class.st
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Class {
#name : #OPUmlClassifierShape,
#superclass : #OPUmlCompartmentableShape,
#traits : 'OPTDIBorderColoredAsStroke + OPTDIColoredAsFill',
#classTraits : 'OPTDIBorderColoredAsStroke classTrait + OPTDIColoredAsFill classTrait',
#traits : 'OPTDIColoredAsFill',
#classTraits : 'OPTDIColoredAsFill classTrait',
#instVars : [
'nameLabel',
'stereotypeLabel',
Expand Down Expand Up @@ -130,7 +130,7 @@ OPUmlClassifierShape >> updateRenderFromStyles [

self isRendered ifFalse: [ ^ self ].
roassalShape color: self fillColor.
roassalShape borderColor: self strokeColor.
roassalShape borderColor: Color black.
super updateRenderFromStyles.
self roassalShape signalUpdate
]
Expand Down
6 changes: 3 additions & 3 deletions repository/OpenPonk-ClassEditor/OPUmlPackageShape.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ OPUmlPackageShape >> renderBasicShape [
^ RSBox new
width: self minWidth;
height: self minHeight;
color: self color;
color: self fillColor;
borderColor: Color black;
yourself
]
Expand Down Expand Up @@ -165,8 +165,8 @@ OPUmlPackageShape >> updateRenderFromModel [
OPUmlPackageShape >> updateRenderFromStyles [

self isRendered ifFalse: [ ^ self ].
roassalShape color: self color.
ear color: self color.
roassalShape color: self fillColor.
ear color: self fillColor.
super updateRenderFromStyles.
self roassalShape signalUpdate
]

0 comments on commit 51284f9

Please sign in to comment.