tangled
alpha
login
or
join now
dunkirk.sh
/
tinkcil
2
fork
atom
ironOS native ios app
2
fork
atom
overview
issues
pulls
pipelines
chore: remove android tick marks
dunkirk.sh
1 month ago
1bd2cbc8
23c6c3e4
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+14
-4
5 changed files
expand all
collapse all
unified
split
android
app
src
main
java
com
tinkcil
ui
components
ScanningOverlay.kt
SettingsSheet.kt
SliderPanel.kt
ios
Tinkcil
ContentView.swift
Tinkcil.xcodeproj
project.pbxproj
+1
android/app/src/main/java/com/tinkcil/ui/components/ScanningOverlay.kt
···
4
import androidx.compose.foundation.layout.Column
5
import androidx.compose.foundation.layout.Spacer
6
import androidx.compose.foundation.layout.fillMaxSize
0
7
import androidx.compose.foundation.layout.height
8
import androidx.compose.foundation.layout.size
9
import androidx.compose.material.icons.Icons
···
4
import androidx.compose.foundation.layout.Column
5
import androidx.compose.foundation.layout.Spacer
6
import androidx.compose.foundation.layout.fillMaxSize
7
+
import androidx.compose.foundation.layout.fillMaxWidth
8
import androidx.compose.foundation.layout.height
9
import androidx.compose.foundation.layout.size
10
import androidx.compose.material.icons.Icons
+6
android/app/src/main/java/com/tinkcil/ui/components/SettingsSheet.kt
···
15
import androidx.compose.material3.MaterialTheme
16
import androidx.compose.material3.ModalBottomSheet
17
import androidx.compose.material3.Slider
0
18
import androidx.compose.material3.Switch
19
import androidx.compose.material3.Tab
20
import androidx.compose.material3.TabRow
···
29
import androidx.compose.ui.Alignment
30
import androidx.compose.ui.Modifier
31
import androidx.compose.ui.res.stringResource
0
32
import androidx.compose.ui.unit.dp
33
import com.tinkcil.R
34
import com.tinkcil.data.model.IronOSLiveData
···
214
onValueChange = { sliderValue = it },
215
onValueChangeFinished = { onSettingChanged(index, sliderValue.roundToInt()) },
216
valueRange = min.toFloat()..max.toFloat(),
0
0
0
0
217
modifier = Modifier.fillMaxWidth()
218
)
219
}
···
15
import androidx.compose.material3.MaterialTheme
16
import androidx.compose.material3.ModalBottomSheet
17
import androidx.compose.material3.Slider
18
+
import androidx.compose.material3.SliderDefaults
19
import androidx.compose.material3.Switch
20
import androidx.compose.material3.Tab
21
import androidx.compose.material3.TabRow
···
30
import androidx.compose.ui.Alignment
31
import androidx.compose.ui.Modifier
32
import androidx.compose.ui.res.stringResource
33
+
import androidx.compose.ui.graphics.Color
34
import androidx.compose.ui.unit.dp
35
import com.tinkcil.R
36
import com.tinkcil.data.model.IronOSLiveData
···
216
onValueChange = { sliderValue = it },
217
onValueChangeFinished = { onSettingChanged(index, sliderValue.roundToInt()) },
218
valueRange = min.toFloat()..max.toFloat(),
219
+
colors = SliderDefaults.colors(
220
+
activeTickColor = Color.Transparent,
221
+
inactiveTickColor = Color.Transparent
222
+
),
223
modifier = Modifier.fillMaxWidth()
224
)
225
}
+4
-2
android/app/src/main/java/com/tinkcil/ui/components/SliderPanel.kt
···
20
import androidx.compose.ui.res.stringResource
21
import androidx.compose.ui.semantics.contentDescription
22
import androidx.compose.ui.semantics.semantics
0
23
import androidx.compose.ui.unit.dp
24
import com.tinkcil.R
25
import kotlin.math.roundToInt
···
75
onSliderEnd()
76
},
77
valueRange = 10f..450f,
78
-
steps = 87, // (450-10)/5 - 1 = 87 steps
79
colors = SliderDefaults.colors(
80
thumbColor = MaterialTheme.colorScheme.primary,
81
-
activeTrackColor = MaterialTheme.colorScheme.primary
0
0
82
),
83
modifier = Modifier
84
.fillMaxWidth()
···
20
import androidx.compose.ui.res.stringResource
21
import androidx.compose.ui.semantics.contentDescription
22
import androidx.compose.ui.semantics.semantics
23
+
import androidx.compose.ui.graphics.Color
24
import androidx.compose.ui.unit.dp
25
import com.tinkcil.R
26
import kotlin.math.roundToInt
···
76
onSliderEnd()
77
},
78
valueRange = 10f..450f,
0
79
colors = SliderDefaults.colors(
80
thumbColor = MaterialTheme.colorScheme.primary,
81
+
activeTrackColor = MaterialTheme.colorScheme.primary,
82
+
activeTickColor = Color.Transparent,
83
+
inactiveTickColor = Color.Transparent
84
),
85
modifier = Modifier
86
.fillMaxWidth()
+2
-2
ios/Tinkcil.xcodeproj/project.pbxproj
···
253
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
254
CODE_SIGN_IDENTITY = "Apple Development";
255
CODE_SIGN_STYLE = Automatic;
256
-
CURRENT_PROJECT_VERSION = 9;
257
DEVELOPMENT_TEAM = M67B42LX8D;
258
ENABLE_PREVIEWS = YES;
259
GENERATE_INFOPLIST_FILE = YES;
···
292
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
293
CODE_SIGN_IDENTITY = "Apple Development";
294
CODE_SIGN_STYLE = Automatic;
295
-
CURRENT_PROJECT_VERSION = 9;
296
DEVELOPMENT_TEAM = M67B42LX8D;
297
ENABLE_PREVIEWS = YES;
298
GENERATE_INFOPLIST_FILE = YES;
···
253
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
254
CODE_SIGN_IDENTITY = "Apple Development";
255
CODE_SIGN_STYLE = Automatic;
256
+
CURRENT_PROJECT_VERSION = 10;
257
DEVELOPMENT_TEAM = M67B42LX8D;
258
ENABLE_PREVIEWS = YES;
259
GENERATE_INFOPLIST_FILE = YES;
···
292
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
293
CODE_SIGN_IDENTITY = "Apple Development";
294
CODE_SIGN_STYLE = Automatic;
295
+
CURRENT_PROJECT_VERSION = 10;
296
DEVELOPMENT_TEAM = M67B42LX8D;
297
ENABLE_PREVIEWS = YES;
298
GENERATE_INFOPLIST_FILE = YES;
+1
ios/Tinkcil/ContentView.swift
···
3
// Tinkcil
4
//
5
0
6
import SwiftUI
7
8
struct ContentView: View {
···
3
// Tinkcil
4
//
5
6
+
import CoreBluetooth
7
import SwiftUI
8
9
struct ContentView: View {