File tree 6 files changed +35
-7
lines changed
knative-plugin/src/topology/components/nodes
topology/src/components/graph-view/components/nodes
6 files changed +35
-7
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,12 @@ const EventSink: React.FC<EventSinkProps> = ({
117
117
{ donutStatus && showDetails && ! isKafkaSink && (
118
118
< PodSet size = { size * 0.75 } x = { width / 2 } y = { height / 2 } data = { donutStatus } />
119
119
) }
120
+ < circle
121
+ cx = { width * 0.5 }
122
+ cy = { height * 0.5 }
123
+ r = { width * 0.25 }
124
+ fill = "var(--pf-global--palette--white)"
125
+ />
120
126
{ typeof getEventSourceIcon ( data . kind , resources . obj ) === 'string' ? (
121
127
< image
122
128
x = { width * 0.33 }
Original file line number Diff line number Diff line change 23
23
& __svg-icon svg {
24
24
width : 100% ;
25
25
height : 100% ;
26
+ fill : var (--pf-topology__node__label__icon--Color );
26
27
}
27
28
}
28
29
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ const EventSource: React.FC<EventSourceProps> = ({
48
48
labelIcon = { < EventSourceIcon /> }
49
49
{ ...rest }
50
50
>
51
+ < circle
52
+ cx = { width * 0.5 }
53
+ cy = { height * 0.5 }
54
+ r = { width * 0.25 + 6 }
55
+ fill = "var(--pf-global--palette--white)"
56
+ />
51
57
{ typeof getEventSourceIcon ( data . kind , resources . obj ) === 'string' ? (
52
58
< image
53
59
x = { width * 0.25 }
Original file line number Diff line number Diff line change 47
47
}
48
48
}
49
49
}
50
+
51
+ :root :where(.pf-theme-dark ) .odc-eventing-pubsub {
52
+ & --image {
53
+ filter : brightness (1.5 ) invert (1 ) hue-rotate (180deg ) saturate (4 );
54
+ }
55
+ }
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ const EventingPubSubNode: React.FC<EventingPubSubNodeProps> = ({
79
79
width = { width * 0.8 }
80
80
height = { width * 0.5 }
81
81
xlinkHref = { eventPubSubImg }
82
+ className = "odc-eventing-pubsub--image"
82
83
/>
83
84
{ children }
84
85
</ BaseNode >
Original file line number Diff line number Diff line change @@ -133,13 +133,21 @@ const BaseNode: React.FC<BaseNodeProps> = ({
133
133
>
134
134
< g data-test-id = "base-node-handler" >
135
135
{ icon && showDetails && (
136
- < image
137
- x = { cx - iconRadius }
138
- y = { cy - iconRadius }
139
- width = { iconRadius * 2 }
140
- height = { iconRadius * 2 }
141
- xlinkHref = { icon }
142
- />
136
+ < >
137
+ < circle
138
+ fill = "var(--pf-global--palette--white)"
139
+ cx = { cx }
140
+ cy = { cy }
141
+ r = { innerRadius + 6 }
142
+ />
143
+ < image
144
+ x = { cx - iconRadius }
145
+ y = { cy - iconRadius }
146
+ width = { iconRadius * 2 }
147
+ height = { iconRadius * 2 }
148
+ xlinkHref = { icon }
149
+ />
150
+ </ >
143
151
) }
144
152
{ showDetails && children }
145
153
</ g >
You can’t perform that action at this time.
0 commit comments