diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cc6d1dddb72..a6b41be7e9c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -23,7 +23,6 @@ Please make sure to be civil during discussion of your contribution (refer to th For translation, visit [Lawnchair on Crowdin](https://lawnchair.crowdin.com) and follow these tips: - When using quotation marks, insert the symbols specific to the target language, as listed in this [this summary table](https://en.wikipedia.org/wiki/Quotation_mark#Summary_table); -- Lawnchair uses title case for some English UI text while other languages do not use title case; opt for sentence case instead; - Some English terminology may have not have commonly-used equivalents in other languages. In such cases, use short descriptive phrases—for example, the equivalent of _bottom row_ for _dock_; - Some languages (e.g. French) have variations of words depending if it's masculine or feminine (gender-specific); we recommend opting for gender-neutral words instead. @@ -97,3 +96,16 @@ See the table below detailing the release type: | Beta | 02 | | Release Candidate | 03 | | Release | 04 | + +#### String naming +Strings `names` in `strings.xml` should follow this format: + +| Type | Format | Example usage | Actual string | Other information | +|--------------------------------------------------|-------------------|----------------------------|----------------------|---------------------------------------------------------------------------------------------------------------------| +| Generic word | $1 | `disagree_or_agree` | Disagree or agree | Should only be used if it doesn't fit the below categories | +| Action | $1_action | `apply_action` | Apply | Any generic action verb can fit here | +| Preference or popup label
Preference headers | $1_label | `folders_label` | Folders | | +| Preference or popup description | $1_description | `folders_description` | Row and column count | | +| Preference choice | $1_choice | `off_choice` | Off | | +| Feature string | (feature_name)_$1 | `colorpicker_hsb` | HSB | Feature strings are strings that are confined to a specific feature. Examples include the gesture and color picker. | +| Launcher string | $1_launcher | `device_contacts_launcher` | Contacts from device | Strings that are specific to the Launcher area | diff --git a/build.gradle b/build.gradle index da85c66cb0c..5e104c80bbf 100644 --- a/build.gradle +++ b/build.gradle @@ -66,7 +66,7 @@ allprojects { plugins.withType(JavaBasePlugin).configureEach { java { - toolchain.languageVersion = JavaLanguageVersion.of(21) + toolchain.languageVersion = JavaLanguageVersion.of(17) } } diff --git a/lawnchair/AndroidManifest.xml b/lawnchair/AndroidManifest.xml index e1d5efb76fd..e7de5f4cb3b 100644 --- a/lawnchair/AndroidManifest.xml +++ b/lawnchair/AndroidManifest.xml @@ -32,6 +32,7 @@ + diff --git a/lawnchair/res/drawable/ic_lens_color.xml b/lawnchair/res/drawable/ic_lens_color.xml index cfefc7f203c..9cfce00c612 100644 --- a/lawnchair/res/drawable/ic_lens_color.xml +++ b/lawnchair/res/drawable/ic_lens_color.xml @@ -2,9 +2,9 @@ - - - - + + + + diff --git a/lawnchair/res/layout/widgets_two_pane_sheet_paged_view.xml b/lawnchair/res/layout/widgets_two_pane_sheet_paged_view.xml new file mode 100644 index 00000000000..442957a9be7 --- /dev/null +++ b/lawnchair/res/layout/widgets_two_pane_sheet_paged_view.xml @@ -0,0 +1,119 @@ + + + + + + + + + + + + + + + + + + + + + + + + + +