Skip to content

Commit 682d471

Browse files
authored
refactor: change package to Bolt (#11142)
2 parents 89fb80a + 20ccb36 commit 682d471

699 files changed

Lines changed: 7755 additions & 8101 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app-k9mail/src/main/kotlin/app/k9mail/provider/K9FeatureThemeProvider.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
package app.k9mail.provider
22

33
import androidx.compose.runtime.Composable
4-
import net.thunderbird.core.ui.compose.theme2.k9mail.K9MailTheme2
4+
import net.thunderbird.components.ui.bolt.theme.k9mail.K9MailBoltTheme
55
import net.thunderbird.core.ui.theme.api.FeatureThemeProvider
66

77
internal class K9FeatureThemeProvider : FeatureThemeProvider {
88
@Composable
99
override fun WithTheme(content: @Composable () -> Unit) {
10-
K9MailTheme2 {
10+
K9MailBoltTheme {
1111
content()
1212
}
1313
}
1414

1515
@Composable
1616
override fun WithTheme(darkTheme: Boolean, content: @Composable () -> Unit) {
17-
K9MailTheme2(darkTheme = darkTheme) {
17+
K9MailBoltTheme(darkTheme = darkTheme) {
1818
content()
1919
}
2020
}

app-thunderbird/src/main/kotlin/net/thunderbird/android/provider/TbFeatureThemeProvider.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
package net.thunderbird.android.provider
22

33
import androidx.compose.runtime.Composable
4-
import net.thunderbird.core.ui.compose.theme2.thunderbird.ThunderbirdTheme2
4+
import net.thunderbird.components.ui.bolt.theme.thunderbird.ThunderbirdBoltTheme
55
import net.thunderbird.core.ui.theme.api.FeatureThemeProvider
66

77
internal class TbFeatureThemeProvider : FeatureThemeProvider {
88
@Composable
99
override fun WithTheme(content: @Composable () -> Unit) {
10-
ThunderbirdTheme2 {
10+
ThunderbirdBoltTheme {
1111
content()
1212
}
1313
}
1414

1515
@Composable
1616
override fun WithTheme(darkTheme: Boolean, content: @Composable () -> Unit) {
17-
ThunderbirdTheme2(darkTheme = darkTheme) {
17+
ThunderbirdBoltTheme(darkTheme = darkTheme) {
1818
content()
1919
}
2020
}

components/.editorconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 4
7+
ij_continuation_indent_size = 4
8+
tab_width = 4
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
end_of_line = lf
12+
max_line_length = 120
13+
14+
[*.{kt,kts}]
15+
ij_kotlin_imports_layout = *,^
16+
ij_kotlin_allow_trailing_comma = true
17+
ij_kotlin_allow_trailing_comma_on_call_site = true
18+
ij_kotlin_indent_before_arrow_on_new_line = false
19+
20+
[*.{yml,yaml,json,toml}]
21+
indent_size = 2
22+
tab_width = 2
23+
ij_continuation_indent_size = 2
24+
25+
[*.md]
26+
trim_trailing_whitespace = false
27+
28+
[*.sh]
29+
indent_size = 2

components/ui/bolt/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Core - UI - Compose - Design system
1+
## Bolt
22

3-
Uses [`:core:ui:compose:theme`](../theme/README.md)
3+
[Bolt](https://bolt.thunderbird.net/) is the Thunderbird Compose design system.
44

55
## Background
66

@@ -36,4 +36,3 @@ This can save time and improve the overall quality, as well as facilitate collab
3636

3737
- [Atomic Design Methodology | Atomic Design by Brad Frost](https://atomicdesign.bradfrost.com/chapter-2/)
3838
- [Atomic Design: Getting Started | Blog | We Are Mobile First](https://www.wearemobilefirst.com/blog/atomic-design)
39-

components/ui/bolt/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ version = libs.versions.tbMobileComponents.get()
77

88
kotlin {
99
android {
10-
namespace = "app.k9mail.core.ui.compose.designsystem"
10+
namespace = "net.thunderbird.components.ui.bolt"
1111
androidResources.enable = true
1212
}
1313

components/ui/bolt/src/androidMain/kotlin/net/thunderbird/core/ui/compose/designsystem/atom/textfield/PasswordSemantics.android.kt renamed to components/ui/bolt/src/androidMain/kotlin/net/thunderbird/components/ui/bolt/atom/textfield/PasswordSemantics.android.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package net.thunderbird.core.ui.compose.designsystem.atom.textfield
1+
package net.thunderbird.components.ui.bolt.atom.textfield
22

33
import android.os.Build
44
import androidx.compose.ui.Modifier

components/ui/bolt/src/androidMain/kotlin/app/k9mail/core/ui/compose/theme2/AndroidColorUtils.kt renamed to components/ui/bolt/src/androidMain/kotlin/net/thunderbird/components/ui/bolt/theme/AndroidColorUtils.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package app.k9mail.core.ui.compose.theme2
1+
package net.thunderbird.components.ui.bolt.theme
22

33
import android.content.Context
44
import androidx.compose.ui.graphics.Color
55
import androidx.compose.ui.graphics.toArgb
66
import com.google.android.material.color.MaterialColors
7-
import net.thunderbird.core.ui.compose.theme2.ColorRoles
7+
import net.thunderbird.components.ui.bolt.theme.ColorRoles
88

99
/**
1010
* Returns a harmonized color that is derived from the given color and the target color.
@@ -17,12 +17,12 @@ import net.thunderbird.core.ui.compose.theme2.ColorRoles
1717
fun Color.toHarmonizedColor(target: Color) = Color(MaterialColors.harmonize(toArgb(), target.toArgb()))
1818

1919
/**
20-
* Returns a [net.thunderbird.core.ui.compose.theme2.ColorRoles] object that contains the accent colors derived from the given color.
20+
* Returns a [net.thunderbird.components.ui.bolt.theme.ColorRoles] object that contains the accent colors derived from the given color.
2121
*
2222
* This function uses Material Colors to retrieve the accent colors based on the provided color.
2323
*
2424
* @param context The context to use for retrieving the color roles.
25-
* @return A [net.thunderbird.core.ui.compose.theme2.ColorRoles] object containing the accent colors.
25+
* @return A [net.thunderbird.components.ui.bolt.theme.ColorRoles] object containing the accent colors.
2626
*/
2727
fun Color.toColorRoles(context: Context): ColorRoles {
2828
val colorRoles = MaterialColors.getColorRoles(context, this.toArgb())

components/ui/bolt/src/commonMain/kotlin/app/k9mail/core/ui/compose/designsystem/atom/Checkbox.kt

Lines changed: 0 additions & 20 deletions
This file was deleted.

components/ui/bolt/src/commonMain/kotlin/app/k9mail/core/ui/compose/designsystem/atom/CircularProgressIndicatorPreview.kt

Lines changed: 0 additions & 27 deletions
This file was deleted.

components/ui/bolt/src/commonMain/kotlin/app/k9mail/core/ui/compose/designsystem/atom/DividerHorizontal.kt

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)