From 3304daadd374f6a1354dfe19edb01036adbd3a13 Mon Sep 17 00:00:00 2001 From: Nik Volkov Date: Fri, 28 Aug 2015 19:30:18 +0700 Subject: [PATCH] add slave window opacity option in config --- rackman.conf | 4 ++++ rackman.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rackman.conf b/rackman.conf index 3b98975..6e16db4 100644 --- a/rackman.conf +++ b/rackman.conf @@ -20,6 +20,10 @@ master_title = "Rackman [Master]" # <строка> slave_title = "Rackman [Slave]" +# Прозрачность измерителя +# <число> (от 0 до 1) +slave_opacity = 0.5 + # Перекрывать главное окно измерителем # True -- да # False -- нет diff --git a/rackman.py b/rackman.py index d53f53f..10384fa 100644 --- a/rackman.py +++ b/rackman.py @@ -320,7 +320,7 @@ def __init__(self, parent): self.window.set_transient_for(parent.window) else: self.window.set_transient_for(None) - self.window.set_opacity(0.5) + self.window.set_opacity( config['slave_opacity'] ) self.parent = parent self.metric = ('px', 1, 0, 2)