diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-29 15:39:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-04-29 18:25:10 +0200 |
commit | 76c793d2acf66f46e9edcda43d2f4327e8374841 (patch) | |
tree | 163af729e0210d6bc3c6c68d121a2d65cbf89eec /solenv | |
parent | debac7777007038aeebd395119ba2ad4a9cc5d88 (diff) |
rename A field in ::Color to T
because it's actually transparency, not alpha, and having proper naming
helps my limited brain keep track of stuff better when debugging
And have both the stream operator and the debugging printer print out
alpha values, for consistency.
Change-Id: I9bc9ffcb71d554603591935e4043a3fb14646ebd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114886
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gdb/libreoffice/tl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/solenv/gdb/libreoffice/tl.py b/solenv/gdb/libreoffice/tl.py index 22ca3ba57c5f..8e15bfd47a0d 100644 --- a/solenv/gdb/libreoffice/tl.py +++ b/solenv/gdb/libreoffice/tl.py @@ -47,9 +47,9 @@ class ColorPrinter(object): r = self.val['R'] g = self.val['G'] b = self.val['B'] - a = self.val['A'] - if a: - return "rgba(%d, %d, %d, %d)" % (r, g, b, a) + t = self.val['T'] + if t: + return "rgba(%d, %d, %d, %d)" % (r, g, b, 255 - t) else: return "rgb(%d, %d, %d)" % (r, g, b) |