OS : Linux MINT
Version OS : 21.2
Terminal : xfce4-terminal
Version terminal : 1.0.4
Version Pitwi : 0.5.2
Problem
When the widget is activated, the border is no longer counted in the display.

When there is no border defined when the widget is active, the default value is None.
Instead of None, it must be the border that has been defined regardless of the widget's state.
|
self._bg = self.bg = bg |
|
self._fg = self.fg = fg |
|
self._border = self.border = border |
|
|
|
self.active_bg = active_bg |
|
self.active_fg = active_fg |
|
self.active_border = active_border |
Solution
self._bg = self.bg = bg
self._fg = self.fg = fg
self._border = self.border = border
self.active_bg = active_bg or bg
self.active_fg = active_fg or fg
self.active_border = active_border or border
OS : Linux MINT
Version OS : 21.2
Terminal : xfce4-terminal
Version terminal : 1.0.4
Version Pitwi : 0.5.2
Problem
When the widget is activated, the border is no longer counted in the display.

When there is no border defined when the widget is active, the default value is None.
Instead of None, it must be the border that has been defined regardless of the widget's state.
pitwi/pitwi/objects/entry.py
Lines 46 to 52 in 0f7d346
Solution