* [gentoo-commits] gentoo-x86 commit in x11-terms/terminator/files: terminator-0.97-brightness.patch
@ 2013-09-25 15:51 Justin Lecher (jlec)
0 siblings, 0 replies; only message in thread
From: Justin Lecher (jlec) @ 2013-09-25 15:51 UTC (permalink / raw
To: gentoo-commits
jlec 13/09/25 15:51:09
Added: terminator-0.97-brightness.patch
Log:
x11-terms/terminator: Backport patch for brightness setting problems, #485750
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Revision Changes Path
1.1 x11-terms/terminator/files/terminator-0.97-brightness.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/terminator/files/terminator-0.97-brightness.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-terms/terminator/files/terminator-0.97-brightness.patch?rev=1.1&content-type=text/plain
Index: terminator-0.97-brightness.patch
===================================================================
=== modified file 'terminatorlib/prefseditor.py'
--- terminatorlib/prefseditor.py 2013-02-16 00:10:45 +0000
+++ terminatorlib/prefseditor.py 2013-05-11 22:03:46 +0000
@@ -923,6 +923,8 @@
def on_inactive_color_offset_change_value(self, widget, scroll, value):
"""Inactive color offset setting changed"""
+ if value > 1.0:
+ value = 1.0
self.config['inactive_color_offset'] = round(value, 2)
self.config.save()
=== modified file 'terminatorlib/terminal.py'
--- terminatorlib/terminal.py 2013-02-15 15:10:55 +0000
+++ terminatorlib/terminal.py 2013-05-11 22:03:46 +0000
@@ -621,11 +621,17 @@
factor = self.config['inactive_color_offset']
self.fgcolor_inactive = self.fgcolor_active.copy()
+ dbg(("fgcolor_inactive set to: RGB(%s,%s,%s)", getattr(self.fgcolor_inactive, "red"),
+ getattr(self.fgcolor_inactive, "green"),
+ getattr(self.fgcolor_inactive, "blue")))
for bit in ['red', 'green', 'blue']:
setattr(self.fgcolor_inactive, bit,
getattr(self.fgcolor_inactive, bit) * factor)
+ dbg(("fgcolor_inactive set to: RGB(%s,%s,%s)", getattr(self.fgcolor_inactive, "red"),
+ getattr(self.fgcolor_inactive, "green"),
+ getattr(self.fgcolor_inactive, "blue")))
colors = self.config['palette'].split(':')
self.palette_active = []
self.palette_inactive = []
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-09-25 15:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-25 15:51 [gentoo-commits] gentoo-x86 commit in x11-terms/terminator/files: terminator-0.97-brightness.patch Justin Lecher (jlec)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox