187 Commits

Author SHA1 Message Date
Lukáš Tinkl
d275476608 fix(StatusSyntaxHighlighter): code block fixes
- make the code bg/fg color configurable
- simplify the code, no need for an extra helper class
- fix code(block) regexes

Needed for https://github.com/status-im/status-desktop/issues/8649
2023-01-09 19:56:49 +01:00
mprakhov
d1926ff252 chore: add QSettings beginGroup and endGroup 2022-12-30 12:49:23 +02:00
Lukáš Tinkl
75b70971ca fix(SoundManager): use logarithmic sound volume scale
Needed for status-im/status-desktop#8426
2022-12-09 20:56:43 +01:00
Boris Melnik
ea103f1a60 fix(hunspell): Remove hunspell cos we not use it
Fixes: https://github.com/status-im/status-desktop/issues/8424
2022-12-09 13:08:21 +03:00
Michal Iskierko
b6c0b40210 chore(@desktop): Expose QTimer functions
Issue #6179
2022-11-28 09:30:38 +01:00
Lukáš Tinkl
9add7e4a4d fix(QClipboardProxy): return imageBase64 as a QString
for better interop with NIM/status-go
2022-11-25 14:36:03 +01:00
Pascal Precht
4dfe2d941b QClipboardProxy: add support for images, html and urls 2022-11-25 10:56:26 +01:00
Patryk Osmaczko
d9a8ecd67c fix: use QClipboard properly in QClipboardProxy
- constructor with connection was never called
- `textChanged` was never emitted
- `clipboard` member was uninitialized
2022-11-24 17:10:40 +01:00
Lukáš Tinkl
14499ccf9b feat: add RXValidator
a QRegularExpression validator with Unicode support

Needed for status-im/status-desktop#8115
2022-11-15 11:39:23 +01:00
Michal Iskierko
51a56e88c3 feature(desktop/general): Showing number of all notifications on tray icon badge
Functionality added to OSNotification.
MacOS version.

Issue #4922
2022-05-26 14:12:59 +02:00
Sale Djenic
d66f310147 feat: url scheme event added 2022-05-13 11:18:05 +02:00
Sale Djenic
8b9fe82625 feat: get text from the clipboard 2022-03-30 18:30:01 +02:00
Khushboo Mehta
7c9d386121 feat: add support for download and copy image by url 2022-03-29 22:48:11 +02:00
Alexandra Betouni
676b1d9bc8 fix(chatinput/mentions) added clipboard proxy to prevent paste text missbehavior 2022-03-03 14:56:57 -05:00
Richard Ramos
e750cb76e8 feat: dos_add_self_signed_certificate 2022-02-21 17:01:26 -04:00
Sale Djenic
5509d6f963 feat: function to check if the app is active and make the app active are added 2022-02-21 21:26:58 +01:00
Sale Djenic
671fb1adc4 feat: sound manager added 2022-02-21 21:26:58 +01:00
Iuri Matias
d86befc4cd fix rebase slipup 2021-09-20 11:35:30 -04:00
Andrei Smirnov
5fb8a012a3 QGuiApplication to not mess with QCoreApplication and QApplication 2021-09-20 11:35:30 -04:00
Sale Djenic
e79a3e179f feat(@desktop/general): (macos) Keychain manager added
LocalAuthentication class - used to authenticate OS' logged user (using Touch Id)
Keychain class - able to store/read/remove item from the Keychain
KeychainManager class - manages the flow of storing/reading/removing an item from
the Keychain using own sync/async methods

This change is required as part of the feature issue-2675
2021-09-17 12:46:45 -04:00
Sale Djenic
f5bcf6ee5f feat(@desktop/general): QSettings class exposed to nim 2021-09-17 12:46:45 -04:00
Sale Djenic
57312bafa5 refactor(@desktop/general): status custom events and os notification moved to the status namespace
- DockShowAppEvent
- OSThemeEvent
- OSNotification
are now part of our `Status` namespace

Corresponding files are renamed and moved to appropriate Status folder.
2021-09-17 12:46:45 -04:00
Michael Bradley, Jr
10af6b3074 feat: expose from local file
And revise some naming re: "to local file".
2021-09-16 16:31:27 -04:00
Anthony Laibe
631b2d1f3f feat: expose to local file 2021-09-16 16:31:27 -04:00
B.Melnik
9da380cf96 feat(Spellchecking): Update Spellchecker
Closes: #3443
2021-09-15 14:32:05 -04:00
B.Melnik
0071238cdc feat(Spellchecker): Add spellchecker class 2021-09-15 14:32:05 -04:00
Andrei Smirnov
96d1ad594a Passing custom events over single instance IPC 2021-09-15 14:24:42 -04:00
Sale Djenic
5ff11d3eb3 fix(@desktop/general): (windows) clicking push notification does expand the app but does not open correct channel/chat
Windows notifications added in a native way.
This change is required as part of the fix for ticket 2996.

Fixes: #2996
2021-09-06 15:09:04 -04:00
Sale Djenic
cafe9c6742 fix(@desktop/general): (macos) clicking push notification does expand the app but does not open correct channel/chat
MacOS notifications handled in a native way.
This change is required as part of the fix for ticket 2996.

Fixes: #2996
2021-09-06 15:09:04 -04:00
Andrei Smirnov
caafbf9430 Added UI scale factor logic. 2021-09-02 15:50:27 -04:00
Khushboo Mehta
c18777749a feat: Adding API's for copying/downloading an image 2021-08-19 10:02:53 -04:00
Alexandra Betouni
37254b04de fix(desktop/chatinput) Adding custom syntax highligher for text formatting in chat input
Closes #39
2021-08-17 12:17:32 -04:00
Sale Djenic
11adba2283 fix(@desktop/general): Changing System Appearance on the fly is not working
This is corresponding dotherside part of the issue 1725.

So far we had kind of a memory leak, cause objects added to the filter were not
deleted ever. When the app is closing, it just removes filters, but doesn't
delete them.

I faced a logical issue, that we were sending qmlengine pointer to the
installEventFilter method, instead object which may or may not rely on the
qqmlengine instance, that is fixed also.

Fixes: #1725
2021-08-16 15:54:02 -04:00
Andrei Smirnov
209ceb8826 Introduced SingleInstance class 2021-08-05 15:47:18 -04:00
Andrei Smirnov
adfdae4971 feat: single instance check for StatusWindow 2021-08-05 15:47:18 -04:00
Richard Ramos
2bffa67581 feat: add parameter to make the translation dynamic or not 2021-08-05 15:07:19 -04:00
B.Melnik
a838753904 fix: show status window in center 2021-07-23 13:20:02 -04:00
Andrei Smirnov
9cea54c029 Removed cmdline args passing to Qt 2021-07-23 13:18:46 -04:00
Andrei Smirnov
b9d7250e80 Passing argc, argv to QGuiApplication 2021-07-23 13:18:46 -04:00
Andrei Smirnov
3c75aa052e feat: QGuiApplication supporting icon() and installEventFilter() methods 2021-07-23 13:18:46 -04:00
B.Melnik
eaa394d711 feat: Add cutsom window without titlebar for osx 2021-06-01 09:42:29 -04:00
Michael Bradley, Jr
3c5eeedb6e fix: ..types.h -> ..Types.h
Some OS filesystems are case-sensitive.
2021-05-27 17:29:44 -05:00
B.Melnik
7c65031ec4 fix: move dock clicker too other files 2021-05-21 07:06:57 -04:00
Eric Mastro
4e39640998 feat: add DockClicker event filter
Add an event filter to `qApp` that can detect a dock icon click (in macos) when the main window is hidden or closed.

Co-authored-by: Boris Melnik <82511785+borismelnik@users.noreply.github.com>
2021-05-04 15:44:56 -04:00
Jacek Sieka
81ea295cc2
long long support
to correctly handle `int` vs `cint` in nim
2021-02-09 09:43:01 +01:00
emizzle
7bf0febfda feat: Add QNetworkAccessManager and clearConnectionCache 2021-01-19 13:12:53 +11:00
Richard Ramos
5012620a2f Creating a cache for network requests 2020-12-21 18:27:27 -04:00
Richard Ramos
57fe3c34cd feat: get host, and update url 2020-10-21 08:46:59 -04:00
Richard Ramos
f268697b25 feat: obtain url from user input 2020-10-21 08:46:59 -04:00
Richard Ramos
d663d22df6 Add function to escape html 2020-09-02 15:54:39 -04:00