deactivated custom window border settings for Windows 10 (issue #67)

This commit is contained in:
joten 2016-04-09 21:25:41 +02:00
parent 3320f14443
commit bdb10c631a
6 changed files with 24 additions and 17 deletions

BIN
bugn.exe

Binary file not shown.

View file

@ -35,10 +35,6 @@ The available configuration variables are listed in the document
associated functions are listed in the document
"[Default hotkeys](./Default_hotkeys.md)".
`Config_borderWidth`, `Config_borderPadding` and `Config_selBorderColor` are
especially usefull, if you are not allowed to set the design in the system
settings.
You may find a sample and template configuration file in the
[usr directory](../usr/).

View file

@ -166,11 +166,12 @@ desktop functionality of BlackBox and NOT bug.n is used (=> Hiding and showing
windows is detected and acted upon).
`Config_borderWidth=0`
> If > 0, the window border width is set to the given integer value.
> If > 0, the window border width is set to the given integer value (supported
Windows versions: _not_ 10).
`Config_borderPadding=-1`
> If >= 0, the window border padding is set to the given integer value (only
for Windows >= Vista).
> If >= 0, the window border padding is set to the given integer value
(supported Windows versions: only Vista).
`Config_showTaskBar=0`
> If false (`=0`), the task bar is hidden. It can be made visible or hidden by
@ -178,11 +179,13 @@ hotkey (see below).
`Config_showBorder=1`
> If false (`=0`), the window borders are hidden; therefor windows cannot be
resized manually by dragging the border, even if using the according hotkey.
resized manually by dragging the border, even if using the according hotkey
(supported Windows versions: _not_ 10).
`Config_selBorderColor=`
> Border colour of the active window; format: 0x00BBGGRR (e. g. `0x006A240A`,
if =0, the system's window border colour is not changed).
> Border colour of the active window, format: 0x00BBGGRR; e. g. `0x006A240A`,
if `=0`, the system's window border colour is not changed (supported Windows
versions: _not_ 10).
### Window arrangement

View file

@ -107,6 +107,13 @@ Config_init() {
Config_hotkeyCount := 0
Config_restoreConfig(Config_filePath)
If (SubStr(A_OSVersion, 1, 3) = "10.") {
Config_borderWidth := 0
Config_borderPadding := -1
Config_showBorder := True
Config_selBorderColor := ""
}
Config_getSystemSettings()
Config_initColors()
Loop, % Config_layoutCount {

View file

@ -341,7 +341,7 @@ Tiler_toggleStackArea(m ,v) {
}
Tiler_traceAreas(m, v, continuously) {
Local h1, h2, n, w1, w2, wndTitle, x1, x2, y1, y2, y3
Local borderW, h1, h2, n, w1, w2, wndTitle, x1, x2, y1, y2, y3
x1 := Monitor_#%m%_x + View_#%m%_#%v%_layoutGapWidth + View_#%m%_#%v%_margin4
y1 := Monitor_#%m%_y + View_#%m%_#%v%_layoutGapWidth + View_#%m%_#%v%_margin1
@ -354,12 +354,13 @@ Tiler_traceAreas(m, v, continuously) {
Gui, Color, %Config_foreColor_#2_#1%
Gui, Font, c%Config_fontColor_#1_#3% s%Config_largeFontSize%, %Config_fontName%
borderW := Config_borderWidth + (Config_borderPadding < 0 ? 0 : Config_borderPadding)
n := View_#%m%_#%v%_area_#0
Loop, % n {
x2 := View_#%m%_#%v%_area_#%A_Index%_x - x1 + Config_borderWidth + Config_borderPadding
y2 := View_#%m%_#%v%_area_#%A_Index%_y - y1 + Config_borderWidth + Config_borderPadding
w2 := View_#%m%_#%v%_area_#%A_Index%_width - 2 * (Config_borderWidth + Config_borderPadding)
h2 := View_#%m%_#%v%_area_#%A_Index%_height - 2 * (Config_borderWidth + Config_borderPadding)
x2 := View_#%m%_#%v%_area_#%A_Index%_x - x1 + borderW
y2 := View_#%m%_#%v%_area_#%A_Index%_y - y1 + borderW
w2 := View_#%m%_#%v%_area_#%A_Index%_width - 2 * borderW
h2 := View_#%m%_#%v%_area_#%A_Index%_height - 2 * borderW
y3 := y2 + (h2 - Config_largeFontSize) / 2
Gui, Add, Progress, x%x2% y%y2% w%w2% h%h2% Background%Config_backColor_#1_#3%, 100
Gui, Add, Text, x%x2% y%y3% w%w2% BackgroundTrans Center, % A_Index

View file

@ -37,8 +37,8 @@ Config_readinInterval=10000
;; Windows ui elements
;Config_bbCompatibility=0
Config_borderWidth=2
Config_borderPadding=0
;Config_borderWidth=0
;Config_borderPadding=-1
Config_showTaskBar=1
;Config_showBorder=1
;Config_selBorderColor=