diff options
author | onestone <onestone> | 2006-12-14 20:09:44 +0000 |
---|---|---|
committer | onestone <onestone> | 2006-12-14 20:09:44 +0000 |
commit | 0f51914d77b0d1d00a998bf1aa61db1139ed0401 (patch) | |
tree | 8515b1f4b09de4e6b3c766f0228166209d75b6c9 /src | |
parent | 7a5e714de3c3ad7b345b4b3ab244e324e161652e (diff) | |
download | aquamarine-0f51914d77b0d1d00a998bf1aa61db1139ed0401.tar.gz aquamarine-0f51914d77b0d1d00a998bf1aa61db1139ed0401.tar.bz2 |
aquamarine: decoration opacity is now configurable
Diffstat (limited to 'src')
-rw-r--r-- | src/aquamarine.kcfg | 12 | ||||
-rw-r--r-- | src/window.cpp | 4 |
2 files changed, 14 insertions, 2 deletions
diff --git a/src/aquamarine.kcfg b/src/aquamarine.kcfg index 882789e..ce89fa6 100644 --- a/src/aquamarine.kcfg +++ b/src/aquamarine.kcfg @@ -31,6 +31,18 @@ <label>Shadow Y offset (distance).</label> <default>3</default> </entry> + <entry name="ActiveOpacity" type="Double"> + <label>Active decoration opacity.</label> + <default>100</default> + <min>0</min> + <max>100</max> + </entry> + <entry name="InactiveOpacity" type="Double"> + <label>Inactive decoration opacity.</label> + <default>80</default> + <min>0</min> + <max>100</max> + </entry> </group> </kcfg> diff --git a/src/window.cpp b/src/window.cpp index fdaf2f6..071b6c3 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -851,8 +851,8 @@ Aquamarine::Window::updateWindowProperties () *data++ = 0; *data++ = DECOR_WINDOW_MASK; - *data++ = 0xffff; - *data++ = 0x7fff; + *data++ = (unsigned short)((Settings::activeOpacity() / 100.0) * 0xffff); + *data++ = (unsigned short)((Settings::inactiveOpacity() / 100.0) * 0xffff); // TOP LEFT *data++ = |