Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: App list view #1170

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Feat: App list view #1170

wants to merge 10 commits into from

Conversation

KorigamiK
Copy link

Addresses #1162 #710

This allows for creating a list like app layout which don't show icons in the app list.

Screenshot_20241214_025543 Screenshot_20241214_025612
|

@KorigamiK
Copy link
Author

KorigamiK commented Dec 14, 2024

The list view has some more fixes and looks like this

Screenshot_20241214_130536 Screenshot_20241214_133411

@KorigamiK KorigamiK changed the title Feat: grid icon visibility settings and migration support Feat: App list view Dec 14, 2024
@KorigamiK
Copy link
Author

Oh and #995 too!

@KorigamiK
Copy link
Author

@MM2-0 would appreciate a review here

@mglants
Copy link

mglants commented Jan 9, 2025

Could you please also add alphabet to the right side of screen for fast scrolling

@KorigamiK
Copy link
Author

Could you please also add alphabet to the right side of screen for fast scrolling

I don't think it is necessary that the results will be sorted by alphabets when searching

Comment on lines 83 to 84
val gridList: Boolean = true,
val gridListIcons: Boolean = true,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

List shouldn't be the default value

Comment on lines 1 to 21
package de.mm20.launcher2.preferences.migrations

import androidx.datastore.core.DataMigration
import de.mm20.launcher2.preferences.LauncherSettingsData

class Migration4: DataMigration<LauncherSettingsData> {
override suspend fun cleanUp() {
}

override suspend fun shouldMigrate(currentData: LauncherSettingsData): Boolean {
return currentData.schemaVersion < 4
}

override suspend fun migrate(currentData: LauncherSettingsData): LauncherSettingsData {
return currentData.copy(
schemaVersion = 4,
gridList = true,
gridListIcons = true,
)
}
}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This migration is unnecessary, gridList already has a default value which is used when no value exists in the currently saved settings file.

@@ -15,7 +15,7 @@ class Migration3: DataMigration<LauncherSettingsData> {
return currentData.copy(
schemaVersion = 3,
locationSearchProviders = buildSet {
if (currentData.locationSearchEnabled) {
if (currentData.locationSearchProviders.isNotEmpty()) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? Because locationSearchEnabled is deprecated? But this migration is the only reason that field still exists…
It used to be a simple true/false flag but after plugins were added, it is now a list of providers. Since we don't know whether the user has disabled location search before, this migration is necessary.

@MM2-0
Copy link
Owner

MM2-0 commented Jan 24, 2025

Implementation looks good so far, but I'm not a fan of how huge these labels are. Is there a reason you chose such a big font?

@KorigamiK
Copy link
Author

Implementation looks good so far, but I'm not a fan of how huge these labels are. Is there a reason you chose such a big font?

Thanks. I wanted the font to be like yam launcher which is nice and a little more minimalist. However I do think we can have the font size customisable for others on their preference too.

sorry for not looking at the requests earlier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants