Commit Graph

2293 Commits

Author SHA1 Message Date
Leptopoda-GitHub 726cb11cbf
unify settingsListTile 2021-11-08 17:26:56 +01:00
Leptopoda-GitHub d86639c730
fix settings listtile 2021-11-08 17:26:02 +01:00
Leptopoda-GitHub 08d8cad461
deprecate developerMode 2021-11-08 17:25:08 +01:00
Leptopoda-GitHub 929eb94b80
cleanup constants 2021-11-08 17:19:22 +01:00
Leptopoda-GitHub 944c0c7935
cleanup painters 2021-11-08 17:15:06 +01:00
Leptopoda-GitHub 49709772e0 better utilize arb localization features
no concatenation enymore :)
2021-11-08 17:10:15 +01:00
Leptopoda-GitHub ea3ac68cc7
better utilize theming
This will move more stuff into the ThemeData class. 
It also cleans up the ColorSettings class

fix spelling
2021-11-08 17:04:38 +01:00
Calcitem ce4e4ae718 style: add .editorconfig
See https://editorconfig.org/#example-file
2021-11-07 16:01:33 +01:00
Calcitem 9b99437103 ci: Add Clang Format Github Action
Reference:
https://github.com/RafikFarhad/clang-format-github-action
https://stackoverflow.com/questions/33258159/how-to-make-clang-format-skip-sections-of-c-code
2021-11-07 01:39:41 +08:00
Calcitem 0a171c7b43
Merge remote-tracking branch 'origin/dev' 2021-11-06 10:38:11 +08:00
Calcitem a106c90724
msvc: Change msvc project files to CRLF line endings 2021-11-06 10:35:16 +08:00
Calcitem ca2f2bdec0
cpp: Format source code to WebKit’s style 2021-11-06 10:32:50 +08:00
Calcitem 54457a02ae
Create CODEOWNERS (#369)
See https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
2021-11-06 01:41:04 +08:00
Calcitem 637080c176 Fix some spelling errors 2021-11-04 07:22:28 +08:00
Calcitem 72a9ae9d74 ci: Add spell-check-this
* Copy https://github.com/check-spelling/spell-check-this/tree/main/.github
* Update spelling/excludes.txt
* Copy words of .vscode/settings.json -> "cSpell.words" to expect list
* Only check C++ and Dart files
* Exclude feedback_localization.dart
* Do not check Qt words
* Fill allow list with C++ 17 & Dart & Qt keywords
2021-11-04 07:22:28 +08:00
Calcitem e724a3b22a .gitattributes: Do not always perform LF normalization on .txt and .json files 2021-11-04 07:22:28 +08:00
Leptopoda-GitHub 4af80de675
fix drawer gesturededector 2021-11-03 08:32:47 +01:00
Leptopoda-GitHub 794500e888
Create .gitattributes
Update .gitattributes
2021-11-03 08:06:52 +01:00
Calcitem d078c33175
.gitignore: Ignore some files created by IDE
Ignore:
.vscode/c_cpp_properties.json
src/ui/flutter_app/android/.project
src/ui/flutter_app/android/.settings/
2021-11-01 01:25:03 +08:00
Calcitem f108e68854
Create pull_request_template.md 2021-10-31 21:16:39 +08:00
Calcitem a5463c4ff7 Update issue templates 2021-10-31 21:05:15 +08:00
Calcitem b8825c7cd3
Create CODE_OF_CONDUCT.md 2021-10-31 20:57:56 +08:00
Calcitem f3139f81f3
Fix spelling errors
And add VSCode spelling configuration.
2021-10-31 12:57:03 +08:00
Leptopoda-GitHub 5878fadcc0 add feedback localizations fixes #357
I'm not that happy with the way this is implemented and that it isn't integrated into our localization workflow...

this is a quick fix and something cleaner will come later
2021-10-31 07:23:28 +08:00
Leptopoda-GitHub 6a39abda75
fix translation instructions 2021-10-30 21:02:07 +02:00
Leptopoda-GitHub 233bf10694
fix drawer icon color
the drawer icon will now follow the nearest IconThemeData. Only the gamePage nad helPage do override them.

cleanup code
2021-10-30 20:49:47 +02:00
Leptopoda-GitHub f993e975fe better utilize flutter_gen 2021-10-31 01:05:31 +08:00
Leptopoda-GitHub a2c414f89a fix some toolbar color fixes #328 2021-10-31 00:34:02 +08:00
Leptopoda-GitHub 2523e52c82 fix game page allignment 2021-10-31 00:30:09 +08:00
Leptopoda 1315f2eb0c fix some drawer stuff fixes #358 and fixes #351 2021-10-31 00:30:09 +08:00
Nikolas Rimikis ec9ec27c05
Clean up dead code (#363)
* Clean up dead code

We had a lot of old code-behind comments. 
I've removed them for better readability of the code and easier maintenance.
(when searching stiff in the code, it sometimes brings you to dead code ...)

Also, the methods on the gamePage observing the routes does only log "/" 
as we don't use namedRoutes.

* Update position.dart

Co-authored-by: Calcitem <calcitem@outlook.com>
2021-10-31 00:22:24 +08:00
Calcitem 3bad4f0942 android: Support compiling to Android 12
* Change compileSdkVersion and targetSdkVersion to 31.
* Declare on the Manifest with exported:true for MainActivity.

Reference:
https://medium.com/androiddevelopers/lets-be-explicit-about-our-intent-filters-c5dbe2dbdce0
https://cafonsomota.medium.com/android-12-dont-forget-to-set-android-exported-on-your-activities-services-and-receivers-3bee33f37beb
https://developer.android.com/guide/topics/manifest/activity-element#exported
2021-10-30 23:06:15 +08:00
Calcitem 86d7638e61
Fix some typos in Readme.md 2021-10-30 13:41:48 +08:00
Calcitem 615047f872
Merge remote-tracking branch 'origin/dev' 2021-10-30 13:07:19 +08:00
Calcitem bd2d123225
l10n: Fix exception when switching to Norsk
Exception:

exception = {FlutterError} No MaterialLocalizations found.
  AlertDialog widgets require MaterialLocalizations to be provided by a Localizations widget ances
context = {StatelessElement} AlertDialog(dirty, dependencies:
  [MediaQuery, _LocalizationsScope-[GlobalKey#5646e], Directionality, _InheritedTheme])

Reference:
https://blog.csdn.net/wangyajuncsd/article/details/106930365
https://github.com/flutter/flutter/blob/master/packages/flutter_localizations/lib/src/l10n/generated_material_localizations.dart Line 18605
2021-10-30 12:57:59 +08:00
Calcitem 2a3afa625a
ci: Create dart-analyze.yml
See: https://github.com/ValentinVignal/action-dart-analyze
2021-10-30 09:03:05 +08:00
Leptopoda 2e48f98f2a
fix some localizations fixes #352 also fixes #342
fix betterFeedback localization
2021-10-28 12:42:01 +02:00
Leptopoda 61d980add2 cleanup constants 2021-10-26 10:33:34 +02:00
Leptopoda ed85908834 better null safety 2021-10-26 10:33:34 +02:00
Leptopoda bc915c7d53 unify logging tags
- make tags constant
- make tags private
2021-10-26 10:33:34 +02:00
Leptopoda 4525953b33 rewrite drawer fixes #316
rewrites the drawer from scratch

add drawer shaddow
2021-10-26 07:31:08 +08:00
Calcitem 9e6e6a6ac7
flutter: windows: Fix build error because of disabling warning 4996 2021-10-25 01:45:28 +08:00
Calcitem 77254675e1
qt: Change saved filename' format
Change from currentDateTime.toTime_t to currentDateTime
2021-10-24 19:43:39 +08:00
Calcitem d5d3758dce
qt: Fix GCC build error about QAction and QActionGroup
error: invalid use of incomplete type 'class QAction'
error: invalid use of incomplete type 'class QActionGroup'
2021-10-24 19:43:39 +08:00
Calcitem 0f77c59319
qt: Replace QSound with QSoundEffect 2021-10-24 19:43:38 +08:00
Calcitem 281f2b832b
qt: Replace QApplication::desktop() with QGuiApplication::primaryScreen()->geometry() 2021-10-24 19:43:38 +08:00
Calcitem f1f3514fae
qt: Disable NET_FIGHT_SUPPORT
Because QNetworkConfigurationManager, QNetworkConfiguration and QNetworkSession
are deprecated, to be removed in Qt 6.
2021-10-24 19:43:18 +08:00
Calcitem 472b184566
qt: Fix build warning 'QFlags<Qt::MouseButton>::QFlags'
Use default constructor instead.
2021-10-24 19:42:43 +08:00
Calcitem 240dca3c5b
qt: Replace QMatrix with QTransform
To Fix Warning	C4996	'QGraphicsView::setMatrix': Use setTransform()
2021-10-24 19:40:26 +08:00
Calcitem ae5e403be1
qt: Replace Qt::endl to "\n"
To fix Qt 5.12 MinGW build error.
2021-10-24 19:40:26 +08:00