aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ui: remove unused structJason A. Donenfeld2019-10-041-6/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: annotate controlsSimon Rozman2019-10-043-0/+6
| | | | | | | | | | | | | | Regarding interface and peer info text boxes: The read-only edit boxes containing interface and peer status and information were read as "<value> read-only multiline" by NVDA screen reader. The read-only edit boxes that serve the informative purpose only must be annotated as ROLE_SYSTEM_STATICTEXT instead of edit box-inherited ROLE_SYSTEM_TEXT role. Regarding logo image in about dialog: NVDA reads "unknown" when reading the dialog without this patch. Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: always show manage page on tray clickJason A. Donenfeld2019-09-271-4/+2
| | | | | | | | It's confusing if it only does this when the window is not already visible. Reported-by: Kai Haberzettl <khaberz@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: don't show more than one about boxJason A. Donenfeld2019-09-271-18/+29
| | | | | Reported-by: Kai Haberzettl <khaberz@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* mod: bump versionsJason A. Donenfeld2019-09-271-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* manager: switch to vanilla gob from rpc to remove reflection bloatJason A. Donenfeld2019-09-231-2/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: use SECURITY_DESCRIPTOR apis from x/sys/windowsJason A. Donenfeld2019-09-232-4/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: do not use tray object when nilJason A. Donenfeld2019-09-131-3/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: fix popup menu placement in syntaxeditSimon Rozman2019-09-131-3/+4
| | | | | | | When pop-up menu is invoked using keyboard, the coordinates are (-1,-1). However, LOWORD/HIWORD return (65535, 65535). Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: cleanupSimon Rozman2019-09-131-1/+0
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: syntax: support Shift+Ins pasting tooSimon Rozman2019-09-051-5/+5
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: syntax: xor colors with backgroundSimon Rozman2019-09-051-1/+8
| | | | | | | | | | This makes syntax highlighting retain text contrast on black background (e.g. high-contrast mode) Maybe using a smarter arithmetic than XOR could be used to retain errors in red. They turn cyan on black background now. Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: fix log view alternating row high-contrast theme switching issueSimon Rozman2019-09-051-9/+7
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: do not initialize in global init()Jason A. Donenfeld2019-09-051-4/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: add gridlines to logJason A. Donenfeld2019-09-051-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: fix dot-gray.svg iconSimon Rozman2019-09-051-1/+1
| | | | | | | | | | | | | 1. The ImageMagick convert has issues with upsampling. The icon was resized to make ImageMagick downsample it for a much sharper .ico result. 2. The transform was removed to make all coordinates integral. 3. The circle has been shrunken a bit. Spanning edge-to-edge it appeared huge. Signed-off-by: Simon Rozman <simon@rozman.si>
* ui: add label mnemonicsSimon Rozman2019-08-307-22/+20
| | | | Signed-off-by: Simon Rozman <simon@rozman.si>
* manager: fix nits in adapter cleanup logic and also handle ā€˜%sā€™ uniformlyJason A. Donenfeld2019-08-301-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: hard code name and version at compile timeJason A. Donenfeld2019-08-301-2/+1
| | | | | | | | | We really do want the true name and version in logs so that external consumers have a good reference point for helping us debug. We can then do the log file directory explicitly. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* version: use ProductName and ProductVersion as stringsJason A. Donenfeld2019-08-301-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: enable priority boostJason A. Donenfeld2019-08-261-0/+3
| | | | | | | This makes things a bit more responsive, despite causing some minor issues for Go timers. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: when check error, reparse textJason A. Donenfeld2019-08-251-2/+3
| | | | | | | Sometimes walk misfires check events. For example, when pressing enter in the title box. This works around the consequences. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: increase default widthJason A. Donenfeld2019-08-191-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: remove SetFocus hack from EditDialogAlexander Neumann2019-08-051-2/+0
| | | | | Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: raise window more aggressivelyJason A. Donenfeld2019-08-051-5/+18
| | | | | | | Since we might now be shell-exec'ing from elsewhere, we probably want to do a bit of input attachment shuffling. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: improve error handlingAlexander Neumann2019-07-2911-138/+401
| | | | | Signed-off-by: Alexander Neumann <an2048@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: use now exposed ItemCountChanged eventAlexander Neumann2019-07-221-2/+1
| | | | | Signed-off-by: Alexander Neumann <an2048@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: update action enabled status also when model items changeAlexander Neumann2019-07-221-0/+1
| | | | | | | This fixes using the Ctrl+A shortcut in the case the log table view never has been focused before. Signed-off-by: Alexander Neumann <an2048@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: add layout item helper for new layout systemJason A. Donenfeld2019-07-171-0/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: remove cloneJason A. Donenfeld2019-06-262-29/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: bind shortcuts using new apiJason A. Donenfeld2019-06-262-5/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: avoid flicker on toolbar when closing modalJason A. Donenfeld2019-06-261-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: confview: only suspend if interface is changingJason A. Donenfeld2019-06-111-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* global: cleanup TODO comment spacingJason A. Donenfeld2019-06-075-9/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: get rid of hacks in tunnelspageAlexander Neumann2019-06-071-4/+2
| | | | | Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* 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>