File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/core/widgets/komorebi Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -138,6 +138,21 @@ def line(start, end):
138
138
line (c - vec (- r / 2 , r ), c + vec (r / 2 , r ))
139
139
elif self .layout_name == "monocle" or self .layout_name == "maximised" :
140
140
pass
141
+ elif self .layout_name == "tiling" :
142
+ rect_left = QRectF (icon_rect )
143
+ rect_left .setWidth (icon_rect .width () * 0.5 )
144
+ rect_left .setHeight (icon_rect .height () * 0.5 )
145
+ rect_right = QRectF (rect_left )
146
+
147
+ rect_left .moveTopLeft (
148
+ icon_rect .topLeft () + vec (icon_rect .width () * 0.1 , icon_rect .height () * 0.1 )
149
+ )
150
+ rect_right .moveTopLeft (
151
+ icon_rect .topLeft () + vec (icon_rect .width () * 0.35 , icon_rect .height () * 0.35 )
152
+ )
153
+
154
+ painter .fillRect (rect_left , self .palette ().color (self .foregroundRole ()))
155
+ painter .drawRect (rect_right )
141
156
elif self .layout_name == "paused" :
142
157
rect_left = QRectF (icon_rect )
143
158
rect_right = QRectF (rect_left )
You can’t perform that action at this time.
0 commit comments