Skip to content

Commit

Permalink
cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Dec 6, 2023
1 parent 788879c commit 89bbba2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xpra/client/gui/window_border.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

class WindowBorder:

def __init__(self, shown:bool=True, red:float=0.9, green:float=0.1, blue:float=0.1, alpha:float=0.6, size:int=4):
def __init__(self, shown: bool = True,
red: float = 0.9, green: float = 0.1, blue: float = 0.1, alpha: float = 0.6, size: int = 4):
self.shown : bool = shown
self.red : float = red
self.green : float = green
Expand All @@ -25,4 +26,7 @@ def hex2(v):
if b<16:
return f"0{b:X}"
return f"{b:X}"
return "WindowBorder(%s, 0x%s%s%s, %s, %s)" % (self.shown, hex2(self.red), hex2(self.green), hex2(self.blue), self.alpha, self.size)
return "WindowBorder(%s, 0x%s%s%s, %s, %s)" % (
self.shown,
hex2(self.red), hex2(self.green), hex2(self.blue), self.alpha, self.size,
)

0 comments on commit 89bbba2

Please sign in to comment.