Commit Graph

74 Commits

Author SHA1 Message Date
Hocuri ded3c5d43e Make the "selected account" checkmark green 2021-10-13 14:21:08 +02:00
adbenitez ba40209723 add checkbox to selected account 2021-10-13 03:22:55 -04:00
bjoern 0995930636 unify buttons (#2007)
* use standard button style for block/accept

* make existing buttons a little bit nicer

* make 'login' button more outstanding, esp. in dark-mode, where colors are tuned down for now
2021-08-02 10:38:14 +02:00
Asiel Díaz Benítez 72acc5fffc separate request and archive badges (#1997) 2021-07-30 12:43:10 +02:00
Hocuri f941fd3c53 Remove Deaddrop chat (Android UI) (#1975)
See deltachat/deltachat-core-rust#2514

Fixes #1963
Fixes #1890

Before deleting a chat the user is asked for confirmation. Before blocking not, because blocking is not "destructive" (i.e. can be completely reverted by unblocking the contact). I'm wondering whether we should show a snackbar with an Undo button though, but we can probably wait for user feedback on this.

* Start removing deaddrop chat

* Generally works

* Fix the buttons

(it's not easy to not show one of the buttons in
ConstraintLayout; if problems turn up, we should probably
just not use ConstraintLayout)

* fix more things

* restartLoader() instead of notifyDataSetChanged() because the latter didn't do anything

* Archived badge

* Rename "Contact request" to "Request"

* oops

* Remove setStockTranslation(8, context.getString(R.string.chat_contact_request));

* Remove commented-out code, we probably won't need it

* Don't show "Delete" button for 1:1 chats

* Get rid of short flickering when declining a request

* Set the app's night mode to match the preference

This added 6ms to startup time, but I think that's OK, as
we will also be able to use more `-night` views in the future

* Make "Accept" text a bit brighter and easier to read in dark mode

* Check if the chattype is Group instead of members.length == 1
2021-07-26 13:01:59 +02:00
Hocuri b3fea81bed Implement a basic connectivity view
The non-squashed original commits are available at 243bd3a56:

* First, quick and dirty version

* Basic HTML connectivity view

* Codestyle, automatically refresh

* Make it accessible from the settings

* Improve usability

I did some user-testing with my family, these are the results:
- Added an emoji to the html page (red dot for not connected, and so on)
- Adapted error messages for SMTP:
  "Not started" -> "(You did not try to send a message recently)"
  "🟢 Connected" -> "🟢 Your last message was sent successfully"
- "Not connected" is misleading, because they think that this means that there is no internet connection.
  But "Not connected" can have other causes, like, a not responding server or a changed-but-not-updated-in-DC password

  Possible solutions:
  - "Not connected" -> "Not connected with gmx.de" (or whatever comes after the '@' in configured_addr). The problem: some people have an own domain for their emails, but no own servers. "Not connected with <your domain>" and might make them think that the problem is that DC tries to connect to the server <your domain>, while the server is hosted at Strato.com.
  - We can ask the system whether there currently is network and then show another error message. The problem: Sometimes the system is wrong.

* Remove error_network

* Remove server_response string

* Move `getConnectivitySummary()` to `DcHelper`

* Implement the changes we agreed on

* Remove string error_no_network

* small fixes
2021-07-08 22:50:22 +02:00
Hocuri 8c0fac43c4 Remove screenlock (#1942)
* Remove screen lock feature, move the two remaining "App access" options into "Advanced"

Locking the app was removed a long time ago, so in "App access" in the
settings, the only two remaining items were "Screen security" and
"Incognito keyboard".

* Remove the now-unused strings

* remove app-access-category from main settings screen

Co-authored-by: B. Petersen <r10s@b44t.com>
2021-06-02 11:21:47 +02:00
adbenitez 39d9a083ad don't reference attribute in an XML drawable, to avoid crashes on old android versions 2021-03-23 18:43:07 -04:00
adbenitez 7b6f1bd507 add lock recording feature 2021-03-14 15:28:23 +01:00
Hocuri bf86badb1c Allow to share media from Delta Chat 2021-03-13 18:56:26 +01:00
Asiel Díaz Benítez beee60d6a7 implement sticker visualization (#1823)
Sticker picker is not implemented, just receiving(from DC Desktop, bots or future DC versions) and forwarding stickers
(code adapted from Signal)
2021-03-10 10:55:50 +01:00
B. Petersen eaf95ed1e3 make icon slightly smaller so that it does not grow the height of the delivery-line 2020-12-13 01:26:41 +01:00
Hocuri 161e1d350b Red and more visible error icon
IIRC some time ago we talked about making the error icon red and make it
an exclamation mark to make it more visible.

Today someone complained to me that they thought the "x" looks like one
can close something and that it shouldn't be green, so I went ahead and
made it red :) (it's also a little bit bigger now)

- the image file is a vector (xml) file now, previously it was a png file.
Might this be a problem?
2020-12-12 16:44:52 +01:00
Hocuri c720df5d5c Add swipe-to-reply quotes 2020-10-11 22:09:51 +03:00
ImgBotApp 7304131b96 [ImgBot] Optimize images
*Total -- 4,577.36kb -> 4,299.93kb (6.06%)

/res/drawable-xxhdpi/ic_lock_white_18dp.png -- 1.29kb -> 0.58kb (54.92%)
/res/drawable-xhdpi/ic_attach_white_24dp.png -- 3.12kb -> 1.45kb (53.64%)
/res/drawable-xxhdpi/ic_unlocked_white_24dp.png -- 1.87kb -> 0.93kb (50.21%)
/docs/images/2019-12-material-icon-template.png -- 72.29kb -> 37.38kb (48.29%)
/res/drawable-hdpi/ic_attach_white_24dp.png -- 1.99kb -> 1.04kb (47.57%)
/store/logo.svg -- 7.46kb -> 4.12kb (44.8%)
/store/logo512x512.png -- 56.80kb -> 32.03kb (43.61%)
/res/drawable-xhdpi/qr_overlay.png -- 4.86kb -> 2.85kb (41.33%)
/res/drawable-xxhdpi/ic_attach_grey600_24dp.png -- 3.24kb -> 1.92kb (40.64%)
/res/drawable-mdpi/ic_attach_white_24dp.png -- 1.10kb -> 0.70kb (36.65%)
/res/drawable-xxhdpi/ic_attach_white_24dp.png -- 2.93kb -> 1.86kb (36.44%)
/res/drawable-xhdpi/ic_circle_fill_white_48dp.png -- 2.31kb -> 1.50kb (35.1%)
/res/drawable-hdpi/ic_circle_fill_white_48dp.png -- 1.68kb -> 1.12kb (33.2%)
/res/drawable-xxhdpi/notification_permanent.png -- 2.38kb -> 1.61kb (32.36%)
/res/drawable-xhdpi/ic_backspace_grey600_24dp.png -- 4.18kb -> 2.86kb (31.45%)
/res/drawable-xxxhdpi/ic_pin_white.png -- 1.99kb -> 1.37kb (31.08%)
/res/drawable-xxxhdpi/ic_unpin_white.png -- 3.32kb -> 2.36kb (29%)
/res/drawable-xhdpi/notification_permanent.png -- 1.63kb -> 1.16kb (28.71%)
/res/drawable-hdpi/ic_backspace_grey600_24dp.png -- 2.93kb -> 2.12kb (27.72%)
/res/drawable-xhdpi/ic_attach_grey600_24dp.png -- 5.81kb -> 4.21kb (27.56%)
/res/mipmap-xxhdpi/ic_launcher.png -- 15.26kb -> 11.09kb (27.36%)
/res/mipmap-xxxhdpi/ic_launcher.png -- 21.80kb -> 15.85kb (27.3%)
/res/drawable-xhdpi/attach_record_video.png -- 5.82kb -> 4.29kb (26.35%)
/res/drawable-xxhdpi/ic_unpin_white.png -- 2.10kb -> 1.56kb (25.73%)
/res/drawable/intro1.png -- 26.95kb -> 20.09kb (25.46%)
/res/drawable-hdpi/ic_attach_grey600_24dp.png -- 3.65kb -> 2.75kb (24.68%)
/res/drawable-xxhdpi/ic_pin_white.png -- 1.29kb -> 0.97kb (24.62%)
/res/drawable-xhdpi/ic_location_chatlist.png -- 0.79kb -> 0.60kb (23.67%)
/res/mipmap-xhdpi/ic_launcher.png -- 9.20kb -> 7.07kb (23.17%)
/res/drawable-xxhdpi/ic_tag_faces_white_24dp.png -- 4.81kb -> 3.76kb (21.94%)
/res/drawable-xxxhdpi/ic_help_white_24dp.png -- 1.62kb -> 1.28kb (21.37%)
/res/drawable-xxxhdpi/ic_tag_faces_white_24dp.png -- 6.81kb -> 5.38kb (21.01%)
/res/drawable-xhdpi/ic_tag_faces_white_24dp.png -- 2.63kb -> 2.09kb (20.64%)
/res/drawable-hdpi/notification_permanent.png -- 1.17kb -> 0.93kb (20.53%)
/res/drawable-xxhdpi-v11/icon_notification.png -- 2.11kb -> 1.68kb (20.32%)
/res/drawable-xhdpi/ic_unpin_white.png -- 1.50kb -> 1.20kb (19.96%)
/res/drawable-xxhdpi/ic_send_push.png -- 4.74kb -> 3.79kb (19.94%)
/store/screenshot-08.png -- 80.47kb -> 64.80kb (19.47%)
/res/drawable-xhdpi/ic_mood_grey600_24dp.png -- 1.37kb -> 1.11kb (19.13%)
/res/drawable-xxhdpi/ic_help_white_24dp.png -- 1.17kb -> 0.95kb (18.41%)
/res/drawable-hdpi/ic_send_push.png -- 1.87kb -> 1.53kb (18.35%)
/res/drawable-xxhdpi/ic_delivery_status_sending.png -- 0.54kb -> 0.44kb (18.35%)
/res/drawable-mdpi/ic_circle_fill_white_48dp.png -- 1.03kb -> 0.84kb (18.01%)
/res/drawable-hdpi/ic_mood_grey600_24dp.png -- 0.92kb -> 0.76kb (17.78%)
/src/debug/res/mipmap-xxhdpi/ic_launcher.png -- 12.93kb -> 10.66kb (17.61%)
/res/drawable-xhdpi/ic_pinned_chatlist.png -- 0.69kb -> 0.57kb (17.42%)
/res/drawable-hdpi/ic_tag_faces_white_24dp.png -- 1.79kb -> 1.49kb (17.25%)
/res/drawable-mdpi/ic_backspace_grey600_24dp.png -- 1.84kb -> 1.53kb (16.67%)
/res/drawable-mdpi/ic_flip_32.png -- 1.21kb -> 1.02kb (15.55%)
/res/drawable-xhdpi/ic_keyboard_grey600_24dp.png -- 0.51kb -> 0.44kb (15.18%)
/res/mipmap-hdpi/ic_launcher.png -- 6.28kb -> 5.34kb (14.98%)
/res/drawable-mdpi/ic_attach_grey600_24dp.png -- 1.90kb -> 1.62kb (14.77%)
/res/drawable-hdpi/ic_keyboard_grey600_24dp.png -- 0.43kb -> 0.37kb (14.61%)
/res/drawable-hdpi/ic_help_white_24dp.png -- 0.71kb -> 0.61kb (14.17%)
/res/drawable-hdpi/ic_unpin_white.png -- 1.00kb -> 0.86kb (13.92%)
/res/drawable-xhdpi/ic_help_white_24dp.png -- 0.80kb -> 0.69kb (13.87%)
/res/drawable-xxxhdpi/ic_circle_fill_white_48dp.png -- 2.28kb -> 1.97kb (13.6%)
/res/drawable-xhdpi/ic_pin_white.png -- 0.90kb -> 0.78kb (13.56%)
/res/drawable-hdpi/ic_save_white_24dp.png -- 0.47kb -> 0.41kb (13.28%)
/res/drawable-mdpi/ic_mood_grey600_24dp.png -- 0.65kb -> 0.56kb (12.95%)
/res/drawable-xhdpi/attach_camera.png -- 4.55kb -> 3.97kb (12.63%)
/res/drawable-xhdpi/ic_send_sms_insecure.png -- 2.79kb -> 2.44kb (12.49%)
/res/drawable-xxhdpi/ic_scroll_down.png -- 1.27kb -> 1.11kb (12.04%)
/res/drawable-mdpi/ic_tag_faces_white_24dp.png -- 1.07kb -> 0.95kb (11.82%)
/res/drawable-xxhdpi/ic_circle_fill_white_48dp.png -- 1.64kb -> 1.45kb (11.77%)
/res/drawable-xxxhdpi/ic_pause_circle_fill_white_48dp.png -- 2.33kb -> 2.06kb (11.64%)
/res/drawable-xhdpi/ic_send_push.png -- 2.96kb -> 2.62kb (11.36%)
/res/drawable-hdpi/ic_lock_white_24dp.png -- 0.52kb -> 0.46kb (11.21%)
/res/drawable-xxhdpi/ic_add_white_24dp.png -- 0.38kb -> 0.34kb (11.11%)
/docs/images/2019-01-chatlist.png -- 99.09kb -> 88.32kb (10.87%)
/assets/stickers/weather/lightning.png -- 4.10kb -> 3.67kb (10.54%)
/res/drawable-xhdpi-v11/icon_notification.png -- 1.37kb -> 1.23kb (10.26%)
/res/drawable-xhdpi/ic_add_white_24dp.png -- 0.36kb -> 0.32kb (10.05%)
/res/drawable-xxxhdpi/ic_delivery_status_sending.png -- 0.57kb -> 0.52kb (10.03%)
/res/drawable-mdpi/ic_add_white_24dp.png -- 0.34kb -> 0.31kb (9.97%)
/res/drawable-xxhdpi/ic_pause_circle_fill_white_48dp.png -- 1.69kb -> 1.52kb (9.95%)
/docs/images/2019-12-material-icon-dev-template.png -- 24.62kb -> 22.17kb (9.93%)
/res/drawable-xxxhdpi/ic_photo_camera_light.png -- 1.81kb -> 1.63kb (9.78%)
/res/mipmap-mdpi/ic_launcher.png -- 3.80kb -> 3.43kb (9.64%)
/res/drawable-hdpi/ic_add_white_24dp.png -- 0.34kb -> 0.30kb (9.3%)
/assets/stickers/food/orange.png -- 4.68kb -> 4.26kb (8.98%)
/res/drawable-xxhdpi/ic_reply.png -- 0.76kb -> 0.69kb (8.9%)
/res/drawable-xxhdpi/ic_delete_white_24dp.png -- 1.05kb -> 0.95kb (8.86%)
/res/drawable-mdpi/ic_help_white_24dp.png -- 0.50kb -> 0.45kb (8.86%)
/res/drawable-hdpi/ic_info_outline_white_24dp.png -- 0.70kb -> 0.64kb (8.74%)
/res/drawable-xhdpi/ic_save_white_24dp.png -- 0.55kb -> 0.50kb (8.57%)
/res/drawable-xhdpi/ic_info_outline_white_24dp.png -- 1.06kb -> 0.97kb (8.05%)
/res/drawable-xhdpi/ic_lock_white_24dp.png -- 0.70kb -> 0.64kb (7.95%)
/res/drawable-mdpi/notification_permanent.png -- 0.78kb -> 0.72kb (7.38%)
/res/drawable-xxxhdpi/ic_delivery_status_failed.png -- 0.97kb -> 0.90kb (7.21%)
/res/drawable-xhdpi/ic_unlocked_white_24dp.png -- 0.89kb -> 0.83kb (6.59%)
/res/drawable-xxxhdpi/ic_send_sms_white_24dp.png -- 1.43kb -> 1.34kb (6.55%)
/res/drawable-xhdpi/ic_mood_white_24dp.png -- 1.19kb -> 1.11kb (6.49%)
/assets/stickers/weather/cloud.png -- 3.60kb -> 3.37kb (6.38%)
/res/drawable-xxxhdpi/ic_delete_white_24dp.png -- 1.29kb -> 1.21kb (6.12%)
/store/screenshot-02.png -- 568.28kb -> 534.26kb (5.99%)
/res/drawable-xxhdpi/ic_check_white_24dp.png -- 0.97kb -> 0.91kb (5.96%)
/src/debug/res/mipmap-xhdpi/ic_launcher.png -- 9.10kb -> 8.58kb (5.71%)
/res/drawable-xhdpi/ic_group_white_24dp.png -- 0.63kb -> 0.60kb (5.56%)
/res/drawable-hdpi-v11/icon_notification.png -- 1.03kb -> 0.98kb (5.38%)
/store/screenshot-06.png -- 697.94kb -> 662.22kb (5.12%)
/res/drawable-xhdpi/ic_forward_white_24dp.png -- 0.41kb -> 0.39kb (4.78%)
/src/debug/res/mipmap-hdpi/ic_launcher.png -- 5.86kb -> 5.59kb (4.58%)
/res/drawable-mdpi/ic_save_white_24dp.png -- 0.36kb -> 0.35kb (4.32%)
/res/drawable-hdpi/ic_pin_white.png -- 0.62kb -> 0.59kb (4.27%)
/res/drawable-mdpi/ic_lock_white_24dp.png -- 0.41kb -> 0.40kb (4.03%)
/res/drawable-mdpi/ic_unlocked_white_24dp.png -- 0.52kb -> 0.50kb (3.95%)
/res/drawable-hdpi/ic_unlocked_white_24dp.png -- 0.62kb -> 0.60kb (3.92%)
/res/drawable-hdpi/ic_mood_white_24dp.png -- 0.77kb -> 0.75kb (3.66%)
/res/drawable-xxhdpi/ic_send_sms_white_24dp.png -- 1.59kb -> 1.54kb (3.61%)
/res/drawable-xxhdpi/quick_camera_front.png -- 0.96kb -> 0.93kb (3.15%)
/res/drawable-mdpi/ic_mood_white_24dp.png -- 0.57kb -> 0.56kb (3.07%)
/store/screenshot-03.png -- 603.55kb -> 585.85kb (2.93%)
/store/screenshot-04.png -- 754.41kb -> 733.27kb (2.8%)
/res/drawable-xhdpi/ic_lock_white_18dp.png -- 0.51kb -> 0.50kb (2.49%)
/res/drawable-mdpi/ic_info_outline_white_24dp.png -- 0.52kb -> 0.50kb (2.45%)
/res/drawable-mdpi/ic_keyboard_grey600_24dp.png -- 0.34kb -> 0.33kb (2.32%)
/docs/images/2019-01-chat.png -- 443.01kb -> 433.10kb (2.24%)
/res/drawable-mdpi/ic_unpin_white.png -- 0.70kb -> 0.68kb (2.11%)
/res/drawable-hdpi/ic_group_white_24dp.png -- 0.46kb -> 0.46kb (1.89%)
/res/drawable-land/background_hd.jpg -- 89.57kb -> 88.06kb (1.68%)
/store/screenshot-07.png -- 167.68kb -> 165.24kb (1.46%)
/res/drawable-xhdpi/slidearrow.png -- 0.37kb -> 0.37kb (1.06%)
/assets/help/delta-what-optim.png -- 16.14kb -> 16.00kb (0.88%)
/store/screenshot-05.png -- 284.20kb -> 281.82kb (0.83%)
/store/screenshot-01.png -- 261.73kb -> 259.58kb (0.82%)
/res/drawable-land/background_hd_dark.jpg -- 69.63kb -> 69.19kb (0.63%)
/res/drawable-xxxhdpi/ic_check_white_24dp.png -- 0.92kb -> 0.92kb (0.21%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
2020-09-25 01:36:30 +00:00
B. Petersen 097891e72a remove outdated reminder
the warning about outdated apps
was pretty unreliable in the past -
because of too short timings
and also because of the "installation date"
and the fact that an "installer" was used, is not always reliable.

also, the "installer date" could be wrong -
if the installation was done when the clock was altered badly.

as we cannot rely on the things the system provides here,
we move the whole thing to the core at
https://github.com/deltachat/deltachat-core-rust/pull/1901
which has also the advantage that this is done for all uis then.
2020-09-16 16:06:43 +02:00
B. Petersen 3a93aa8f06 remove unused resources 2020-08-17 15:26:34 +02:00
B. Petersen 097be99446 adapt map icon to typical size of action bar icons 2020-07-29 14:00:02 +02:00
B. Petersen 95da8c4b9a add videochat icon to menu 2020-07-29 14:00:01 +02:00
B. Petersen d315362d2d add ephemeral icon to title bar 2020-07-11 16:14:46 +02:00
B. Petersen 2877f17d05 improve layout of emoji popups
in light mode, input field and emoji popups are both white,
therefore opening the emoji popup (used eg. for diversified emojis)
in the first line looks weird, you do not really know
if the display is part of the emoji picker or of the input field.
fixing that by adding a small border around the popup.

in dark mode, things are already fine.
2020-06-23 13:33:32 +02:00
B. Petersen e61a3fe488 add dark wallpaper for portrait and landscape mode 2020-06-17 15:11:48 +02:00
B. Petersen b268981a84 move background to raw drawable folder, it does not contain dpi information 2020-06-17 13:13:49 +02:00
cyberta 0df0d5bc8e fix new line lint issues, cleanup in media_keyboard.xml 2020-06-12 18:12:40 +02:00
cyberta 87293a78df remove deprecated resources 2020-06-12 16:45:55 +02:00
cyberta c15ba22037 tweak colors of emoji category icons 2020-06-12 16:33:43 +02:00
cyberta 56d85e01e1 update and adapt signal sources to have the new media keyboard including new emojis 2020-06-11 17:37:43 +02:00
cyberta ac0dfc2649 change blur icon 2020-06-08 13:23:11 +02:00
cyberta 9f48ee0a74 first draft on face detection adapting signal's new feature 2020-06-05 14:46:30 +02:00
B. Petersen a1394c1742 set background color of pinned chats 2020-02-15 12:26:23 +01:00
B. Petersen 0f64d4e9c5 remove unused InviteActivity, it was disabled 9 months ago in #790 2020-01-17 14:08:22 +01:00
B. Petersen 3549c5591d remove pager with weird descriptions, tweak welcome layout 2019-12-05 01:04:21 +01:00
B. Petersen 0e38854a5f simplify preference divider 2019-10-22 19:47:38 +02:00
Ampli-fier 9295ebdcc6 Added top and bottom border 2019-07-11 19:23:00 +02:00
Ampli-fier 34b943a03d Added border, Changed background color
Added top and bottom border. Aligned the background color with other elements (e.g. menu, PLUS-button).
2019-07-11 19:21:47 +02:00
B. Petersen f95acd0578 cleanup: delete unused java-source-files and resource-files 2019-05-26 00:02:24 +02:00
B. Petersen 5aa23f0346 simplify sticky-headers 2019-05-22 12:14:57 +02:00
B. Petersen 13c1c7a4f2 unify video-play-button 2019-05-13 21:44:38 +02:00
cyBerta 53c068c57d differentiate pois from other markers by a dotted outline 2019-04-30 16:22:38 +02:00
cyBerta e55a230220 create UI to add POI markers 2019-04-26 21:13:30 +02:00
B. Petersen 0f59350be8 avoid using ?attr in combination with <solid> 2019-04-22 22:26:54 +02:00
B. Petersen 5d6b26e2a2 make scroll-to-bottom more visible, thanks @Ampli-fier 2019-04-17 11:26:11 +02:00
B. Petersen a949e24d5e tweak scroll-to-bottom-button 2019-04-17 11:17:53 +02:00
B. Petersen e7405b59f7 tweak send button 2019-04-17 11:17:53 +02:00
Ampli-fier 4a184de91e Switch conversation list divider on Theme changes 2019-04-10 19:15:14 +02:00
B. Petersen cbf5405ee0 tweak dark mode settings 2019-04-05 01:10:28 +02:00
B. Petersen 0343b9a732 fix cursor and control colors in dark mode 2019-04-05 01:01:06 +02:00
cyBerta 63366eecf3 add logic to select markers, prerequisite for showing an info overlay 2019-03-12 16:22:42 +01:00
cyBerta 1f332f2b8c add MapDataManager, updates points and lines drawn on the map 2019-03-08 02:00:24 +01:00
B. Petersen 8456f807d5 unify color names 2019-02-02 15:53:29 +01:00