Skip to content

Commit 6fb75ad

Browse files
committed
Refactor UI components: adjust font sizes, update action card types, and improve tab labels for better readability
1 parent ce26569 commit 6fb75ad

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/main/kotlin/com/github/cnrture/quickprojectwizard/toolwindow/manager/featuremaker/FeatureMakerContent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fun FeatureMakerContent(project: Project) {
5050
text = "Feature Creator",
5151
style = TextStyle(
5252
color = QPWTheme.colors.red,
53-
fontSize = 28.sp,
53+
fontSize = 24.sp,
5454
fontWeight = FontWeight.Bold,
5555
textAlign = TextAlign.Center,
5656
),

src/main/kotlin/com/github/cnrture/quickprojectwizard/toolwindow/manager/featuremaker/components/ConfigurationPanel.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import androidx.compose.ui.unit.dp
1313
import com.github.cnrture.quickprojectwizard.common.Utils
1414
import com.github.cnrture.quickprojectwizard.common.file.FileWriter
1515
import com.github.cnrture.quickprojectwizard.components.QPWActionCard
16+
import com.github.cnrture.quickprojectwizard.components.QPWActionCardType
1617
import com.github.cnrture.quickprojectwizard.components.QPWText
1718
import com.github.cnrture.quickprojectwizard.components.QPWTextField
1819
import com.github.cnrture.quickprojectwizard.dialog.MessageDialogWrapper
@@ -45,6 +46,7 @@ fun ConfigurationPanel(
4546
title = "Create",
4647
icon = Icons.Default.Create,
4748
actionColor = QPWTheme.colors.red,
49+
type = QPWActionCardType.MEDIUM,
4850
onClick = {
4951
if (Utils.validateFeatureInput(featureName, selectedSrc)) {
5052
Utils.createFeature(

src/main/kotlin/com/github/cnrture/quickprojectwizard/toolwindow/manager/modulemaker/ModuleMakerContent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fun ModuleMakerContent(project: Project) {
6666
var showFileTreeDialog by remember { mutableStateOf(false) }
6767

6868
var selectedTab by remember { mutableStateOf(0) }
69-
val tabs = listOf("New Module", "New Module with Existing Files")
69+
val tabs = listOf("New\nModule", "New Module with\nExisting Files")
7070

7171
Utils.loadExistingModules(
7272
project = project,

src/main/kotlin/com/github/cnrture/quickprojectwizard/toolwindow/manager/settings/SettingsContent.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ fun SettingsContent() {
6363
title = "Save",
6464
icon = Icons.Default.Save,
6565
actionColor = QPWTheme.colors.lightGray,
66+
type = QPWActionCardType.MEDIUM,
6667
onClick = {
6768
currentSettings = settings.state.copy(
6869
defaultPackageName = packageName,
@@ -84,7 +85,7 @@ fun SettingsContent() {
8485
text = "Settings",
8586
style = TextStyle(
8687
color = QPWTheme.colors.lightGray,
87-
fontSize = 36.sp,
88+
fontSize = 24.sp,
8889
fontWeight = FontWeight.Bold,
8990
textAlign = TextAlign.Center,
9091
)
@@ -298,9 +299,7 @@ private fun GeneralSettingsTab(
298299
onModuleTypeChange: (String) -> Unit,
299300
) {
300301
Column(
301-
modifier = Modifier
302-
.fillMaxSize()
303-
.padding(12.dp),
302+
modifier = Modifier.fillMaxSize(),
304303
verticalArrangement = Arrangement.spacedBy(16.dp),
305304
) {
306305
SettingItem("Default Package Name") {

0 commit comments

Comments
 (0)