Commit Graph

1333 Commits

Author SHA1 Message Date
370304e576 Simplify main, use version from meta-data defined in CMake
* Simplify code
* Set meta-data for Qt application via helpers from c++utilities and
  qtutilities
* Set sensible default settings for Qt via helper from qtutilities for more
  modern behavior regarding High DPI scaling and theming, e.g. for better
  dark mode support under Windows 11
2023-06-05 22:43:41 +02:00
8dfca58470 Avoid boilerplate code in build script utilizing c++utilities/qtutilities
* Prepare use of qtutilities for improving UI
* Remove code for enabling warnings that has been copied from c++utilities
* Remove code for various details now handled in qtutilities helpers
* Simplify configuration of executable
* Simplify finding Qt modules
2023-06-05 22:10:11 +02:00
gjdv
10363f312b finalize editable clefs 2023-06-05 20:27:46 +02:00
gjdv
462d8128ee first attempt to have editable clefs 2023-06-05 20:27:46 +02:00
26a67310bb Make text color themable as well and extend light theme 2023-06-05 20:27:46 +02:00
f5d2b2ac1c Avoid compilation error on MacOS build
Prevents
```
 /Users/runner/work/PianoBooster/PianoBooster/src/Cfg.h:77:5: error: defaulted definition of copy assignment operator is not constexpr
    constexpr ColorTheme &operator=(const ColorTheme &other) = default;
    ^
```
2023-06-05 20:27:46 +02:00
93ba642355 Tweak light theme further 2023-06-05 20:27:46 +02:00
fb553cf3d0 Make colors for "playing zone" configurable 2023-06-05 20:27:46 +02:00
e568df1e8a Avoid implicit signness conversion 2023-06-05 20:27:46 +02:00
38fd083e7a Draw background of keyboard so it looks good regardless of theme 2023-06-05 20:27:46 +02:00
724548a8b1 Add header files to target so they show up in IDE's such as Qt Creator 2023-06-05 20:27:46 +02:00
48a597a1a6 Remember the selected theme 2023-06-05 20:27:46 +02:00
cc291bf432 Improve coding style in setNoteColor()
* Use white-spaces in consistency with other functions defined here
* Check for `note == 0` first as it is the simpler check
2023-06-05 20:27:46 +02:00
04b4e3d56d Add very basic configuration for theming and a light theme
* Allow selecting between built-in themes via "View" menu
* Add basic mechanism to apply color changes at runtime
* Add a basic light theme (needs still tweaking)
2023-06-05 20:27:46 +02:00
35c01b9382 Refactor color definitions to make them easier exchangable 2023-06-05 20:27:46 +02:00
36b970ebcb Modernize CColor class
* Use `constexpr`
* Add c'tor for `float` to avoid unnecassary conversions if arguments are
  already `float`
* Simplify syntax in `operator==`
2023-06-05 20:27:46 +02:00
39882a6db6 Link against FluidSynth's imported target and find its dependencies
* Link against FluidSynth at all (not sure how the Windows build has with
  FluidSynth enabled has ever been working without actually linking to the
  FluidSynth's library)
* The imported target of FluidSynth does not automatically make the targets
  it depends on available. So we need to find the according packages
  manually.
2023-06-05 20:27:46 +02:00
fab9af593e Remove using namespace std to fix building with mingw-w64
Using `using namespace std;` is a bad practice, especially in header files
as it can lead to name collisions. In this case `std::byte` (from C++ 17)
collided with `typedef unsigned char byte` (from the Windows header
`rpcndr.h`) leading to many build errors.
2023-06-05 20:27:46 +02:00
3f482e49c7 Add include path of FreeType 2 as FTGL does not pull it in automatically
Apparently FTGL's CMake find module does not pull in the include path for
FreeType 2 headers automatically. So we need to do that manually on our
own. This code is relying on pkg-config for finding the include path. As
pkg-config has been intentionally avoided for Windows builds I only enabled
this for mingw-w64 builds so far (where pkg-config is usually available).
2023-06-05 20:27:46 +02:00
79c985adbf Fix casing of CMake modules to allow cross-compilation for Windows under Linux
The filesystem on Linux is case-sensitive so we need to get the casing
right when compiling on Linux for Windows.
2023-06-05 20:27:46 +02:00
Capitaine Fab
6dafdcbdfc
Merge pull request #327 from Martchus/coding-style
Improve coding style
2023-01-22 22:29:58 +01:00
54c843adc4 Avoid implicit signness conversions 2023-01-22 19:33:02 +01:00
d951c3b6fa Use C++ style includes for standard headers consistently 2023-01-22 19:33:02 +01:00
Capitaine Fab
a1dfa18e05
Merge pull request #324 from pianobooster/weblate-pianobooster-pianobooster
Weblate pianobooster pianobooster
2023-01-16 23:30:47 +01:00
Yuri Chornoivan
bd54e951d6 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (375 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/uk/
2023-01-16 23:26:35 +01:00
Dan
16dd600f68 Translated using Weblate (Ukrainian)
Currently translated at 100.0% (375 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/uk/
2023-01-16 23:26:35 +01:00
poi
a2a94fd22a Translated using Weblate (Chinese (Simplified))
Currently translated at 81.3% (305 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/zh_Hans/
2023-01-16 23:26:35 +01:00
Magnus Johansson
b6beee254d Translated using Weblate (Swedish)
Currently translated at 100.0% (375 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/sv/
2023-01-16 23:26:35 +01:00
Magnus Johansson
14dd1bf02f Translated using Weblate (Swedish)
Currently translated at 100.0% (375 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/sv/
2023-01-16 23:26:35 +01:00
Magnus Johansson
2d4975321f Translated using Weblate (Swedish)
Currently translated at 100.0% (375 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/sv/
2023-01-16 23:26:35 +01:00
Darío Hereñú
9d23dd17ab Translated using Weblate (Spanish)
Currently translated at 100.0% (375 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/es/
2023-01-16 23:26:35 +01:00
poi
d4551621b9 Translated using Weblate (Chinese (Simplified))
Currently translated at 71.4% (268 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/zh_Hans/
2023-01-16 23:26:35 +01:00
Iñaki Ibarrola Atxa
d88400c190 Translated using Weblate (Basque)
Currently translated at 34.9% (131 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/eu/
2023-01-16 23:26:35 +01:00
Eric
2792e59092 Translated using Weblate (Chinese (Simplified))
Currently translated at 71.4% (268 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/zh_Hans/
2023-01-16 23:26:35 +01:00
poi
2344b0b89a Translated using Weblate (Chinese (Simplified))
Currently translated at 71.4% (268 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/zh_Hans/
2023-01-16 23:26:35 +01:00
Reza Almanda
98c7fb8ddc Translated using Weblate (Indonesian)
Currently translated at 21.8% (82 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/id/
2023-01-16 23:26:35 +01:00
Jonatan Nyberg
59afb5eaca Translated using Weblate (Swedish)
Currently translated at 100.0% (375 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/sv/
2023-01-16 23:26:35 +01:00
Jonatan Nyberg
7e2324564b Translated using Weblate (Swedish)
Currently translated at 97.0% (364 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/sv/
2023-01-16 23:26:35 +01:00
عبدالرئوف عابدی
9db4f9d0b1 Translated using Weblate (Persian)
Currently translated at 18.1% (68 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/fa/
2023-01-16 23:26:35 +01:00
Lucas
9f9b2d901a Translated using Weblate (Portuguese)
Currently translated at 100.0% (375 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/pt/
2023-01-16 23:26:35 +01:00
Lucas
ad35847806 Translated using Weblate (Portuguese)
Currently translated at 91.2% (342 of 375 strings)

Translation: PianoBooster/PianoBooster
Translate-URL: https://hosted.weblate.org/projects/pianobooster/pianobooster/pt/
2023-01-16 23:26:35 +01:00
Capitaine Fab
73f9e67c4a
Merge pull request #323 from pianobooster/martchus/code-modernization
Martchus/code modernization
2023-01-16 23:18:32 +01:00
0cd1b38c8a Add myself in license and about dialog 2023-01-16 23:12:31 +01:00
2604e3d9b2 Remove unused includes from QtMain.cpp 2023-01-16 23:12:31 +01:00
bd3cdf3e08 Use QStringLiteral for application meta-data string literals 2023-01-16 23:12:31 +01:00
e74818a7a3 Fix displaying application icon under Wayland 2023-01-16 23:12:31 +01:00
4b921a55bb Avoid unnecessary copies when passing strings 2023-01-16 23:12:31 +01:00
3401ef5ab4 Modernize coding style a little bit
* Use QStringLiteral/QStringBuilder in a few places where it makes sense
* Remove unused variables
* Remove `== true`
* Specify context object when registering lambda as callback
2023-01-16 23:11:16 +01:00
Capitaine Fab
b19e3798b7
Merge pull request #322 from pianobooster/martchus/build-improvements
Martchus/build improvements
2023-01-16 23:06:44 +01:00
Jean Pierre Cimalando
921228381c Add the library paths of RtMidi 2023-01-16 22:59:42 +01:00