aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* ui: remove hacks from confviewAlexander Neumann2019-06-071-25/+3
| | | | | Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: confview: add more super horrible wm_sizing hacksJason A. Donenfeld2019-06-071-0/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: cache last observed stateJason A. Donenfeld2019-06-071-5/+15
| | | | | | | | Sometimes State() is out of sync with the notifications when a service removal is pending. This unifies that, and also removes IPC from the main thread. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: do not pass pointer into closure from loopJason A. Donenfeld2019-05-271-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: add WM_SIZING hack back to confviewJason A. Donenfeld2019-05-271-0/+1
| | | | | | Helps selection of initial item. I'm not happy about this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: err is a %vJason A. Donenfeld2019-05-231-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: confview: hide groupbox when removingJason A. Donenfeld2019-05-231-0/+1
| | | | | | This prevents us from loosing focus for a second. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: fix listview painting on win 7 classic theme and high contrast themesAlexander Neumann2019-05-231-13/+2
| | | | | Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: trade one hack for another in confviewJason A. Donenfeld2019-05-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* conf: read files potentially with UTF16Jason A. Donenfeld2019-05-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: use compact height text edits in confviewJason A. Donenfeld2019-05-201-2/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* service: split into tunnel and managerJason A. Donenfeld2019-05-209-111/+117
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: remove TODO from confview about loadingJason A. Donenfeld2019-05-161-4/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: fix button icon height to be 32Jason A. Donenfeld2019-05-161-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: correct names and patterns for go lintJason A. Donenfeld2019-05-161-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: react to DPI changes in syntax editorJason A. Donenfeld2019-05-163-4/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: change acronyms to uppercaseSimon Rozman2019-05-161-5/+5
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: fix dpi related code smellsAlexander Neumann2019-05-159-112/+61
| | | | | Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: don't closehandle on a menuJason A. Donenfeld2019-05-151-1/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: disallow empty space left clicks in listviewAnthony Dong2019-05-151-0/+1
| | | | | Signed-off-by: Anthony Dong <aanthony.dong@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: show overlay in pinned taskbarJason A. Donenfeld2019-05-141-11/+12
| | | | | | | | This means the window icon no longer changes, which sucks, especially for servercore, but it means that the taskbar shows something useful on Windows 10. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: centralize state labelsJason A. Donenfeld2019-05-143-32/+28
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: update progress indicator when createdJason A. Donenfeld2019-05-141-9/+28
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: at least try to make a tray on server coreJason A. Donenfeld2019-05-141-3/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: add about to corner menuJason A. Donenfeld2019-05-142-1/+29
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: regroup all importsJason A. Donenfeld2019-05-146-11/+17
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: do not use system tray on server coreJason A. Donenfeld2019-05-142-2/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: syntax: rehighlight on DPI changeJason A. Donenfeld2019-05-131-0/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: syntax: fix indentationJason A. Donenfeld2019-05-131-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: always do WM_SIZING hack in confviewJason A. Donenfeld2019-05-131-2/+1
| | | | | | | Gets around the situation where a row is hidden in the interface but not the peer and a gap is left. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: add easter eggJason A. Donenfeld2019-05-131-0/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: show taskbar progressJason A. Donenfeld2019-05-131-0/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: lock runtime thread as early as possibleJason A. Donenfeld2019-05-131-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: do not overlay gray dot on iconJason A. Donenfeld2019-05-131-0/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: reduce width of gray icon borderJason A. Donenfeld2019-05-131-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: remove unused iconsJason A. Donenfeld2019-05-133-6/+0
| | | | | | | | These dots were good while they lasted, and I'll be sad to see them go. We can always recover them from git history need be. Next perhaps we'll axe dot-gray.svg? Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: give foreground status to foreign process in raiseJason A. Donenfeld2019-05-131-0/+2
| | | | | | | | While UIPI prevents us from sending real window messages, we can at least give the foreground privilege to the other process, which lets it then actually come in front as it wants. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: unlock thread after raisingJason A. Donenfeld2019-05-121-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: leave it to walk to lock threadJason A. Donenfeld2019-05-121-3/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: give editor different iconJason A. Donenfeld2019-05-121-0/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: don't tie ctrl+S to exportingJason A. Donenfeld2019-05-121-2/+0
| | | | | | Roopesh doesn't like it. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: adjust message filter for raiseJason A. Donenfeld2019-05-122-6/+6
| | | | | | High integrity means UIPI blocks this, so let it through. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: allow editing existing tunnels without changing nameJason A. Donenfeld2019-05-111-18/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: tunnel cloningSteven Honson2019-05-112-8/+31
| | | | | | | | | Allows a tunnel to be cloned verbatim. It's not part of the toolbar or with a shortcut, as it's a rather obscure action. Signed-off-by: Steven Honson <steven@honson.id.au> [zx2c4: removed from toolbar and shortcut] Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: edit requires further informationSteven Honson2019-05-111-1/+1
| | | | | | | | As edit generally requires further information from the user, it should be suffixed with an ellipsis. Signed-off-by: Steven Honson <steven@honson.id.au> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: use ipc client to list existing tunnelsSteven Honson2019-05-111-3/+4
| | | | | | | | | | The manager service and ui application may be running as different users, and therefore use different configurations directories. Using the ipc client ensures that tunnels are listed from the perspective of the service. Signed-off-by: Steven Honson <steven@honson.id.au> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: optimise window sizing for a single peerSteven Honson2019-05-111-1/+2
| | | | | | | | | | | | Increasing the default size of the manage window allows all of the detail and status for a basic single peer configuration with a preshared key to be visible without scrolling. Also sets a minimum window size for the manage window. Signed-off-by: Steven Honson <steven@honson.id.au> [zx2c4: reduced from 800x600 to 670x525] Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: dont use main window and run our own message loopJason A. Donenfeld2019-05-103-19/+50
| | | | | | This allows us to do custom things like send raise click messages. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: somewhat aggressively cache iconsJason A. Donenfeld2019-05-107-65/+107
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: show correct name in deletion confirmationJason A. Donenfeld2019-05-091-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>