Skip to content
Snippets Groups Projects
Commit 9a1db5f3 authored by flyinpancake's avatar flyinpancake :8ball:
Browse files

comon

parent 04a2de12
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<targetSelectedWithDropDown>
<Target>
<type value="QUICK_BOOT_TARGET" />
<deviceKey>
<Key>
<type value="VIRTUAL_DEVICE_PATH" />
<value value="C:\Users\flyinpancake\.android\avd\Pixel_2_API_30.avd" />
</Key>
</deviceKey>
</Target>
</targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2021-12-07T18:39:24.097532400Z" />
</component>
</project>
\ No newline at end of file
......@@ -13,6 +13,11 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.DndSpells">
<activity
android:name=".RuinableActivity"
android:exported="false"
android:label="@string/title_activity_ruinable"
android:theme="@style/Theme.DndSpells.NoActionBar" />
<activity
android:name=".SelectSpellsActivity"
android:exported="false"
......
......@@ -10,6 +10,7 @@ import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.runtime.livedata.observeAsState
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
......@@ -51,7 +52,7 @@ fun SelectSpellsContent(
updateCharacter: (DndCharacter) -> Unit = {}
) {
Scaffold(
topBar = { DndTopBar("${character.name} - select spells") }
topBar = { DndTopBar(character.name + stringResource(R.string.select_spells)) }
) {
LazyColumn {
items(
......@@ -179,9 +180,16 @@ val sampleCharacter = DndCharacter(
@Composable
fun DefaultPreview() {
DndSpellsTheme {
SelectSpellsContent(spells = samplespells, character = sampleCharacter)
}
}
@Preview(showBackground = true)
@Composable
fun DefaultDarkPreview() {
DndSpellsTheme {
DndSpellsTheme (darkTheme = true) {
SelectSpellsContent(spells = samplespells, character = sampleCharacter)
}
}
......@@ -17,4 +17,6 @@
<string name="add_new_character">Add New Character</string>
<string name="title_activity_character_details">CharacterDetailsActivity</string>
<string name="title_activity_select_spells">SelectSpellsActivity</string>
<string name="select_spells">\" - select spells\"</string>
<string name="title_activity_ruinable">RuinableActivity</string>
</resources>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment