aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/main/res (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ui: add barrier to fix detail fragment overlapSlipkHunter2022-07-071-7/+10
| | | | | | | When listen port and MTU are hidden, we need a barrier here. Signed-off-by: SlipkHunter <abrito025@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: reorder constraints to fix detail fragment overlapHarsh Shandilya2022-05-261-3/+7
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: move default style to Material3 with Dynamic ColorsHarsh Shandilya2022-05-262-20/+17
| | | | | | | The TV theme has been kept as-is since Material You guidance around this is a bit scarce at the moment. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: normalise icon tints and remove unused drawableHarsh Shandilya2022-05-2613-23/+25
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: word wrap settings headersVlad Loktionov2022-03-201-0/+5
| | | | | | | Apparently some translations make this wrap, which is bad. Signed-off-by: Vlad Loktionov <yobabay23@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: allow importing tunnel from an QR image stored on the deviceNikita Pustovoi2022-03-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Add a new feature to import a tunnel from a saved QR image, this feature integrates into 'import from file' flow, however adds a condition, if file is an image, attempt to parse it as QR image file. My use case for this feature, is to allow easier sharing of tunnels to family. Scanning QR code is ok when you have an external display to show it, but if you sent QR code to someone, there is no way to import it in the app. If you share a config file, that becomes way harder for a non-technical person to import as now they need to find a file with that name in the file picker etc etc, Where the images are very visible in the file picker, and user can easily recognize it for import. Testing: - Click "+" blue button, try to import a valid `.conf` file - the 'original' file flow should not be affected - Click "+" blue button, try to import a valid QR code image - if QR code was parsed, then a new tunnel will be added. - Click "+" blue button, try to import an invalid QR code image - Error message will be shown Signed-off-by: Nikita Pustovoi <deishelon@gmail.com> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: add margin on empty list textMarcel Joss2022-01-172-0/+3
| | | | | Signed-off-by: Marcel Joss <marceljoss@hotmail.ch> Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* global: bump copyright yearJason A. Donenfeld2021-10-295-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tunnel: remove kernel module downloaderJason A. Donenfeld2021-10-2927-99/+98
| | | | | | | | Nathan Chance dropped the ball repeatedly and never maintained this in a consistent way that anybody could use. With Android 12 out now, just drop it all together. A bummer, but I don't see much of a choice. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: fix and silence lint errorsHarsh Shandilya2021-10-281-1/+0
| | | | | | | | | | - The `copied_to_clipboard` translation for Farsi does not include the placeholder, so it has been removed. - A couple lints that are errors but we cannot particularly do anything about were downgraded to warnings. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: sync translationsHarsh Shandilya2021-10-272-0/+357
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: sync with crowdinJason A. Donenfeld2021-09-2613-4/+208
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui,tunnel: support DNS search domainsJason A. Donenfeld2021-09-252-5/+33
| | | | | | | | wg-quick has supported this for a while, but not the config layer, and not the Go backend, so wire this all up. Requested-by: Alexis Geoffrey <alexis.geoffrey97@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: sync translationsHarsh Shandilya2021-07-2924-95/+737
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: mark app_name string as untranslatableHarsh Shandilya2021-07-291-1/+1
| | | | | | WireGuard is a brand name that should not be localized. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: retry DNS resolution for 10 secondsJason A. Donenfeld2021-05-261-0/+1
| | | | | | | | | | This has several problems: 1) it blocks the main thread; 2) it doesn't distinguish between a permanent error and a transient one; 3) the 10 seconds is hard coded; 4) there's no way for the user to cancel it. We'll have to improve this. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: abstract out theme attributes to reduce overlapHarsh Shandilya2021-04-212-22/+4
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: replace three dots with ellipsis characterHarsh Shandilya2021-04-212-4/+4
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: remove unnecessary v21 styles overrideHarsh Shandilya2021-04-211-26/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: remove invalid translation from FarsiHarsh Shandilya2021-04-211-1/+0
| | | | | | copied_to_clipboard is a format string and must have a format specifier Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ui: reduce size of QS tile drawableHarsh Shandilya2021-04-211-2/+2
| | | | | | | This will be rendered on an even smaller scale on devices, but 400dp x 400dp was simply too big and could cause performance issues. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: fix resource qualifier for IndonesianHarsh Shandilya2021-04-211-0/+0
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* strings: sync translationsHarsh Shandilya2021-04-1114-56/+653
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tunnel: report git commit as wgVersionJason A. Donenfeld2021-02-1216-16/+16
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: sync translationsHarsh Shandilya2021-01-233-31/+236
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* ClipboardUtils: localize clipboard notification snackJason A. Donenfeld2021-01-011-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: sync with crowdinJason A. Donenfeld2020-12-217-0/+532
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* strings: sync translationsHarsh Shandilya2020-11-071-0/+184
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* build: add crowdin syncer script and use itJason A. Donenfeld2020-10-1412-4/+1013
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: handle going up directories betterJason A. Donenfeld2020-09-241-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* ui: cleanup code after churnJason A. Donenfeld2020-09-233-204/+204
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: use our own file pickerJason A. Donenfeld2020-09-233-7/+99
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: hook up isFocused as observable propertyJason A. Donenfeld2020-09-222-4/+7
| | | | | | | | This is kind of ridiculous, since the items own state should clearly be queryable, but it doesn't appear to be the case here, so just shuffle it around into kotlin and back. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: add text when there are no tunnelsJason A. Donenfeld2020-09-222-1/+16
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: make cards slightly smallerJason A. Donenfeld2020-09-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: tweak TV layout to fit 3 rows betterHarsh Shandilya2020-09-221-6/+8
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tv: set layout manager from XMLHarsh Shandilya2020-09-221-0/+2
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tv: make logo almost betterJason A. Donenfeld2020-09-222-9/+21
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: anchor RV bottom to top of delete buttonHarsh Shandilya2020-09-221-1/+1
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tv: remove useless attributeJason A. Donenfeld2020-09-221-1/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: use plus instead of text for importingJason A. Donenfeld2020-09-221-3/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: do themingHarsh Shandilya2020-09-225-18/+71
| | | | Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
* tv: account for broken TVs with no file pickerJason A. Donenfeld2020-09-221-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: remove tiny words from tv bannerJason A. Donenfeld2020-09-221-0/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: add tv bannerJason A. Donenfeld2020-09-224-0/+220
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: use proper icon for buttonJason A. Donenfeld2020-09-221-3/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: hide deletion button when nothing to deleteJason A. Donenfeld2020-09-221-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: add ugly deletion modeJason A. Donenfeld2020-09-223-2/+38
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: wire in statsJason A. Donenfeld2020-09-221-1/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* tv: wire up tunnel start/stopJason A. Donenfeld2020-09-222-10/+9
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>