Skip to content

Commit

Permalink
resize detectorBox to h/3 (w/3)
Browse files Browse the repository at this point in the history
  • Loading branch information
nwg-piotr committed Nov 15, 2022
1 parent 151553b commit 04910b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func setupHotSpot(monitor gdk.Monitor, dockWindow *gtk.Window) gtk.Window {
})

if *position == "bottom" || *position == "top" {
detectorBox.SetSizeRequest(w, h/5)
detectorBox.SetSizeRequest(w, h/3)
hotspotBox.SetSizeRequest(w, 2)
if *position == "bottom" {
layershell.SetAnchor(win, layershell.LAYER_SHELL_EDGE_BOTTOM, true)
Expand All @@ -320,7 +320,7 @@ func setupHotSpot(monitor gdk.Monitor, dockWindow *gtk.Window) gtk.Window {
}

if *position == "left" {
detectorBox.SetSizeRequest(w/5, h)
detectorBox.SetSizeRequest(w/3, h)
hotspotBox.SetSizeRequest(2, h)
layershell.SetAnchor(win, layershell.LAYER_SHELL_EDGE_LEFT, true)

Expand Down

0 comments on commit 04910b6

Please sign in to comment.