mirror of
https://github.com/mihonapp/mihon.git
synced 2026-10-16 13:48:09 -07:00
* Update Simple Icons to 16.34.0 The brand paths are unchanged; only the version in the headers moves. * Use the current Material Symbols names Several symbols were renamed after the Valkyrie migration. people_alt, new_releases, screen_lock_*, screen_rotation and stay_current_* are only aliases in the font now, for group, verified and the mobile_* symbols. done, push_pin and expand_less/expand_more become check, keep and keyboard_arrow_up/down, which draw the same or an almost identical glyph. * Use filled icons where the Material Symbols migration dropped the fill The migration mapped Filled and Default references to the outline symbols, but the classic glyph was often solid, and Outlined Warning, Error and Pause were solid as well. Each call site was compared against the rendered classic glyph, and the solid ones now use RoundedFilled. view_list needs an auto-mirrored filled pack. The outline SVGs this leaves unused are removed. * Show a compact grid icon for the compact display modes Compact and cover-only grids showed the same view_module icon as the comfortable grid. * Generate notification and layout drawables from Material Symbols Notifications and XML layouts can't use ImageVectors, so they relied on hand-kept copies of classic Material drawables. A build-logic task now converts an opt-in list of the module's SVGs with AGP's Svg2Vector into generated resources. sdk-common is taken from AGP's own dependency metadata, so its version always matches AGP. Compose call sites that only needed a drawable (tab close, crop) use the ImageVectors instead. The icons module's R class must be imported as MaterialSymbolsR, enforced by spotless, so it isn't mistaken for the app's R. * Redraw custom icons in the Material Symbols style The reading mode, crop off, mark previous as read and chapter download icons were drawn in the classic style. They are rebuilt from Material Symbols shapes (mobile_gear, mobile_arrow_right/down, crop, arrow_circle_down, downloading) in a new custom-material-symbols module; each SVG header lists where its parts come from. The default reading mode and incognito use mobile_gear and eyeglasses_2 as they are. ReadingMode holds an ImageVector now, and the module's R class follows the same alias rule as MaterialSymbolsR. * Use Material Symbols for the launcher shortcuts Updates uses release_alert because the symbol named new_releases is now a check badge. * Rename the animated icon drawables anim_*_enter no longer fits now that the icons play in both directions. This is a pure rename so the following commits show only content changes. * Use Material Symbols for the bottom navigation icons The library, updates, history and browse animations are rebuilt from the outline and filled symbols but keep their original motion: the white inside is pushed into the ribbon, the "!" and the needle, and the history ring still spins. Updates uses release_alert, like the shortcut. More already matches more_horiz and is unchanged. * Use rounded bars for the manga description caret The animation is unchanged; the bars get rounded ends to match the Material Symbols stroke. * Settle the browse tab icon when selecting and deselecting The compass turns a full turn and settles with overshoot both ways, instead of deselecting by playing the select animation backwards. A rememberAnimatedVectorPainter overload takes separate enter and exit animations and doesn't animate on the first composition.
45 lines
787 B
Kotlin
45 lines
787 B
Kotlin
plugins {
|
|
alias(mihonx.plugins.android.library)
|
|
alias(mihonx.plugins.compose)
|
|
|
|
alias(mihonx.plugins.spotless)
|
|
|
|
alias(libs.plugins.valkyrie)
|
|
}
|
|
|
|
android {
|
|
namespace = "mihon.icons.custommaterialsymbols"
|
|
}
|
|
|
|
spotless {
|
|
format("svg") {
|
|
target("src/**/*.svg")
|
|
trimTrailingWhitespace()
|
|
endWithNewline()
|
|
}
|
|
}
|
|
|
|
valkyrie {
|
|
packageName = "mihon.icons.custommaterialsymbols"
|
|
generateAtSync = true
|
|
|
|
imageVector {
|
|
suppressUnusedReceiverWarning = true
|
|
}
|
|
|
|
iconPack {
|
|
name = "CustomMaterialSymbols"
|
|
targetSourceSet = "main"
|
|
|
|
nested {
|
|
name = "Rounded"
|
|
sourceFolder = "rounded"
|
|
autoMirror = false
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
api(libs.androidx.compose.ui)
|
|
}
|