-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commits adds a simple UI to view all unthemed icons, alongside a way to either copy them to clipboard and open the form (either prefilled or empty). It also adds a simple long-click gesture to directly visit the icon request form with prefilled information. If the URL length is greater than DIRECT_LINK_MAX_LENGTH however, it removes the direct link and offers the user to copy the contents to the clipboard. Fixes #2162
- Loading branch information
1 parent
cf84305
commit 6115328
Showing
9 changed files
with
241 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
224 changes: 213 additions & 11 deletions
224
app/src/main/kotlin/app/lawnchair/lawnicons/ui/components/home/IconRequestFAB.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
app/src/main/kotlin/app/lawnchair/lawnicons/ui/util/Constants.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package app.lawnchair.lawnicons.ui.util | ||
|
||
object Constants { | ||
const val ICON_REQUEST_FORM = "https://forms.gle/xt7sJhgWEasuo9TR9" | ||
const val GITHUB = "https://github.com/LawnchairLauncher/lawnicons" | ||
|
||
/** | ||
* Maximum length of a direct Google forms link. The limit is around 2300-2400 characters, so we use the lower limit to prevent any issues. | ||
*/ | ||
const val DIRECT_LINK_MAX_LENGTH = 2300 | ||
} |
6 changes: 0 additions & 6 deletions
6
app/src/main/kotlin/app/lawnchair/lawnicons/ui/util/StringConstants.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.