Commit graph

25 commits

Author SHA1 Message Date
David Turner
8a3331f613 Improve red button focus colour
- All of our red buttons were ImButton with the colours overridden at the
  use site.  Instead make an ImButtonRed which defines these colours in
  one place.
- Previously the red buttons had focus indicated by the text colour
  changing from white to blue.  This was quite hard to see, instead
  change the button colour to blue (as is done for the white buttons).
  A darker shade of blue is used so that there is still good contrast
  with the white text.
- Update the reds (buttons and main screen background) with the
  branding-approved red: the official colour palette says Pi Red is
  #cd2355
2023-10-18 17:01:47 +01:00
Tom Dewey tom.dewey@raspberrypi.com
819ffe14f0 qml: Use sensible defaults to clear Options 2023-10-17 16:35:28 +01:00
Tom Dewey tom.dewey@raspberrypi.com
cd9596d0bd qml: Remove redundant string
This used to be attached to the ComboBox for selecting whether you
wanted the customization options to be applied only for this session, or
stored for re-use.

As we've removed that option, we should also remove the label string.
2023-10-17 16:11:23 +01:00
Tom Dewey tom.dewey@raspberrypi.com
ecf992cb62 Rework OS Customization
In the new flow, it doesn't make sense to _not_ save the OS
customization parameters, so remove the ComboBox.

Additionally, our data model was failing to notify the UI of changes to
the saved settings state. Due to time constraints, I'm not able to
resolve the binding in the 'correct' manner, but I can introduce a
makeshift status signalling mechanism to prevent UI inconsistency.
2023-10-17 15:28:04 +01:00
Tom Dewey tom.dewey@raspberrypi.com
50449158bc i18n: Advanced settings -> OS customization
Per a request from the Raspberry Pi Communications team, change
'Advanced Settings' and 'Image customization' to read 'OS
customization'.

This is to avoid amibuguity in the English, where Image_r_ and Image may
be conflated when reading at speed.

Regrettably, this breaks the existing translations. To prevent
confusion, explicitly delete the existing translations - as they're almost
certainly not valid with the reworded meaning.
2023-10-17 15:28:04 +01:00
Tom Dewey tom.dewey@raspberrypi.com
a5c736f230 Revert "i18n: Advanced Settings -> OS Customisation"
This reverts commit 2fb58dc01c.

The original commit included an unexpected deletion of _all_
translations in certain languages. This was unintented, and appears to
have been a merging artefact.

This change will be re-submitted as a separate PR.
2023-10-16 13:06:21 +01:00
Tom Dewey tom.dewey@raspberrypi.com
2fb58dc01c i18n: Advanced Settings -> OS Customisation 2023-10-16 11:46:54 +01:00
Floris Bos
0b3a6b3f95 Apply settings if saved setting popup was opened and cancelled
Make sure original saved settings are also applied if
settings popup was opened and subsequently closed
by pressing "X" instead of "Save"
2023-10-03 18:19:17 +02:00
Floris Bos
269e43ced5 Advanced settings: add cfg80211.ieee80211_regdom=cc to cmdline.txt 2023-09-25 20:51:16 +02:00
Floris Bos
ce549cadb2 Misc advanced options improvements 2023-09-23 19:45:17 +02:00
Floris Bos
6eb358ed75 WIP: Tabbed options interface 2023-09-22 23:51:36 +02:00
Floris Bos
c8a05b995f Make code Qt 6 compatible / raises minimum Qt 5 version to 5.14
In addition to replacing Qt5 with Qt6 in CMakeLists.txt
two small changes to the code are needed to make things build
on Qt 6 (which in turn is needed for Apple M1/M2 support).

The cost of this change is that when building on Qt 5, at least
version 5.14 is needed.
Certain older but still used Linux distributions such as
Ubuntu 10.04 LTS still use 5.12, so revert this commit if you
are building on those...
2023-03-20 14:42:48 +01:00
Floris Bos
6dc2f3e58e Refactor WLAN PSK retrieval code
- Reduce platform specific code in ImageWriter class,
  and move that to seperate classes.
- Use API calls to get current SSID on Windows and Linux instead
  of launching command line utilities.
2023-03-10 18:37:22 +01:00
Floris Bos
ebaf2ef6a1 qml advanced options: do not render HTML when displaying username
QML text labels by default support a small subset of HTML
formatting (e.g. <b> and <a href>)
Disable this.

Closes #564
2023-03-10 15:50:27 +01:00
Floris Bos
ebc6edc0c3 Advanced settings: use current username instead of Pi as default
Instead of using 'pi' as default, try to get the username of
the current user from the OS.

May not always work. (e.g. some Windows users may not have
setup a username themselves, but may be using a default user
created by the PC vendor).

Closes #497
2022-11-15 01:10:46 +01:00
Floris Bos
c3237625bf Fix behavior on pressing "X" in advanced options dialog
In the "advanced settings" dialog, if "X" instead of
"apply settings" is clicked, it is seen as "cancel" and
no settings are applied.

If there do are saved settings, make sure to ask the
user on pressing "write" if they do want the saved settings
applied, instead of applying no settings.
2022-11-14 21:41:51 +01:00
Floris Bos
9d4665dbca Advanced settings: fix escaping single quotes
Ref #486
2022-10-15 15:21:39 +02:00
Floris Bos
ce0b02b823 Prevent user from entering invalid characters in hostname field
Implemented as "validator" which will cause that if an user
presses a key that is not allowed, it will not register.
Saves having to add an error message that would need to be
translated to different languages.

Closes #474
2022-08-18 20:07:26 +02:00
Floris Bos
2c00c64aba Revert "Add new regulatory-domain parameter to cloud-init files"
Existing Ubuntu version does not like new regulatory-domain
parameter being present.
This reverts commit 31252bf1c4.
2022-08-18 15:21:09 +02:00
Floris Bos
4961990ce0 Allow outsourcing custom settings to script 2022-07-31 16:02:10 +02:00
Floris Bos
31252bf1c4 Add new regulatory-domain parameter to cloud-init files
Seems to have been added to netplan: https://github.com/canonical/netplan/pull/281
2022-07-31 15:06:03 +02:00
Floris Bos
a46fd2d1fa Fix persistent public key setting
Closes #464
2022-07-26 23:20:42 +02:00
Floris Bos
8d943ce2bd Remove overscan/piwiz supression options
- Remove overscan and piwiz supression option
- Change wifi -> wireless LAN
- Bump version
2022-03-24 20:06:14 +01:00
Floris Bos
6edd14f044 Embedded: fix password mask character 2022-02-23 16:47:04 +01:00
Floris Bos
033ff07abf Move source files to /src 2022-02-14 10:07:15 +01:00
Renamed from OptionsPopup.qml (Browse further)