Skip to content

Commit

Permalink
add slave window opacity option in config
Browse files Browse the repository at this point in the history
  • Loading branch information
FRiMN committed Aug 28, 2015
1 parent e9b338a commit 3304daa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions rackman.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ master_title = "Rackman [Master]"
# <строка>
slave_title = "Rackman [Slave]"

# Прозрачность измерителя
# <число> (от 0 до 1)
slave_opacity = 0.5

# Перекрывать главное окно измерителем
# True -- да
# False -- нет
Expand Down
2 changes: 1 addition & 1 deletion rackman.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3304daa

Please sign in to comment.