forked from thunderbird/thunderbird-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change compose design system to use outlined icons
- Loading branch information
Showing
9 changed files
with
44 additions
and
52 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
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
72 changes: 32 additions & 40 deletions
72
...e/designsystem/src/main/kotlin/app/k9mail/core/ui/compose/designsystem/atom/icon/Icons.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 |
---|---|---|
@@ -1,83 +1,75 @@ | ||
package app.k9mail.core.ui.compose.designsystem.atom.icon | ||
|
||
import androidx.compose.material.icons.automirrored.outlined.ArrowBack | ||
import androidx.compose.material.icons.filled.AccountCircle | ||
import androidx.compose.material.icons.filled.Cancel | ||
import androidx.compose.material.icons.filled.CheckCircle | ||
import androidx.compose.material.icons.filled.Error | ||
import androidx.compose.material.icons.filled.MoveToInbox | ||
import androidx.compose.material.icons.filled.Outbox | ||
import androidx.compose.material.icons.filled.Security | ||
import androidx.compose.material.icons.filled.Visibility | ||
import androidx.compose.material.icons.filled.VisibilityOff | ||
import androidx.compose.material.icons.outlined.ArrowDropDown | ||
import androidx.compose.material.icons.outlined.AccountCircle | ||
import androidx.compose.material.icons.outlined.Celebration | ||
import androidx.compose.material.icons.outlined.Check | ||
import androidx.compose.material.icons.outlined.ErrorOutline | ||
import androidx.compose.material.icons.outlined.ExpandLess | ||
import androidx.compose.material.icons.outlined.ExpandMore | ||
import androidx.compose.material.icons.outlined.Inbox | ||
import androidx.compose.material.icons.outlined.Info | ||
import androidx.compose.material.icons.outlined.Menu | ||
import androidx.compose.material.icons.outlined.Security | ||
import androidx.compose.material.icons.outlined.Visibility | ||
import androidx.compose.ui.graphics.vector.ImageVector | ||
import androidx.compose.material.icons.Icons as MaterialIcons | ||
|
||
// We're using getters so not all icons are loaded into memory as soon as one of the nested objects is accessed. | ||
object Icons { | ||
object Filled { | ||
val Error: ImageVector | ||
get() = MaterialIcons.Filled.Error | ||
|
||
val Inbox: ImageVector | ||
get() = MaterialIcons.Filled.MoveToInbox | ||
|
||
val Outbox: ImageVector | ||
get() = MaterialIcons.Filled.Outbox | ||
|
||
val Security: ImageVector | ||
get() = MaterialIcons.Filled.Security | ||
|
||
val PasswordVisibility: ImageVector | ||
get() = MaterialIcons.Filled.Visibility | ||
|
||
val PasswordVisibilityOff: ImageVector | ||
get() = MaterialIcons.Filled.VisibilityOff | ||
|
||
val User: ImageVector | ||
get() = MaterialIcons.Filled.AccountCircle | ||
|
||
val Check: ImageVector | ||
val CheckCircle: ImageVector | ||
get() = MaterialIcons.Filled.CheckCircle | ||
|
||
val Cancel: ImageVector | ||
get() = MaterialIcons.Filled.Cancel | ||
} | ||
|
||
object Outlined { | ||
val AccountCircle: ImageVector | ||
get() = MaterialIcons.Outlined.AccountCircle | ||
|
||
val ArrowBack: ImageVector | ||
get() = MaterialIcons.AutoMirrored.Outlined.ArrowBack | ||
|
||
val ArrowDropDown: ImageVector | ||
get() = MaterialIcons.Outlined.ArrowDropDown | ||
|
||
val Celebration: ImageVector | ||
get() = MaterialIcons.Outlined.Celebration | ||
|
||
val Menu: ImageVector | ||
get() = MaterialIcons.Outlined.Menu | ||
|
||
val Check: ImageVector | ||
get() = MaterialIcons.Outlined.Check | ||
|
||
val Info: ImageVector | ||
get() = MaterialIcons.Outlined.Info | ||
val Celebration: ImageVector | ||
get() = MaterialIcons.Outlined.Celebration | ||
|
||
val Error: ImageVector | ||
val ErrorOutline: ImageVector | ||
get() = MaterialIcons.Outlined.ErrorOutline | ||
|
||
val ExpandMore: ImageVector | ||
get() = MaterialIcons.Outlined.ExpandMore | ||
|
||
val ExpandLess: ImageVector | ||
get() = MaterialIcons.Outlined.ExpandLess | ||
|
||
val Inbox: ImageVector | ||
get() = MaterialIcons.Outlined.Inbox | ||
|
||
val Info: ImageVector | ||
get() = MaterialIcons.Outlined.Info | ||
|
||
val Menu: ImageVector | ||
get() = MaterialIcons.Outlined.Menu | ||
|
||
val Outbox: ImageVector | ||
get() = MaterialIcons.Filled.Outbox | ||
|
||
val Security: ImageVector | ||
get() = MaterialIcons.Outlined.Security | ||
|
||
val Visibility: ImageVector | ||
get() = MaterialIcons.Outlined.Visibility | ||
|
||
val VisibilityOff: ImageVector | ||
get() = MaterialIcons.Filled.VisibilityOff | ||
} | ||
} |
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
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