react-native-okaycam 1.1.26 → 1.1.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ios/RNOkayCam.swift
CHANGED
|
@@ -80,7 +80,7 @@ class RNOkayCam: NSObject {
|
|
|
80
80
|
okayCamConfig.showOverlay = showOverlay
|
|
81
81
|
|
|
82
82
|
// timer
|
|
83
|
-
okayCamConfig.timer.backgroundColor = self.hexStringToUIColor(hex: timer.object(forKey: "backgroundColor") as! String)
|
|
83
|
+
okayCamConfig.timer.backgroundColor = self.hexStringToUIColor(hex: timer.object(forKey: "backgroundColor") as! String,alpha:0.5)
|
|
84
84
|
okayCamConfig.timer.textColor = self.hexStringToUIColor(hex: timer.object(forKey: "textColor") as! String)
|
|
85
85
|
|
|
86
86
|
// capture button color
|
|
@@ -348,7 +348,7 @@ class RNOkayCam: NSObject {
|
|
|
348
348
|
return result
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
func hexStringToUIColor (hex:String) -> UIColor {
|
|
351
|
+
func hexStringToUIColor (hex:String,alpha : Float = 1.0) -> UIColor {
|
|
352
352
|
var cString:String = hex.trimmingCharacters(in: .whitespacesAndNewlines).uppercased()
|
|
353
353
|
|
|
354
354
|
if (cString.hasPrefix("#")) {
|
|
@@ -366,7 +366,7 @@ class RNOkayCam: NSObject {
|
|
|
366
366
|
red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0,
|
|
367
367
|
green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0,
|
|
368
368
|
blue: CGFloat(rgbValue & 0x0000FF) / 255.0,
|
|
369
|
-
alpha: CGFloat(
|
|
369
|
+
alpha: CGFloat(alpha)
|
|
370
370
|
)
|
|
371
371
|
}
|
|
372
372
|
|
package/package.json
CHANGED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="AndroidLogFilters">
|
|
4
|
-
<option name="TOOL_WINDOW_CONFIGURED_FILTER" value="Show only selected application" />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="AutoImportSettings">
|
|
7
|
-
<option name="autoReloadType" value="NONE" />
|
|
8
|
-
</component>
|
|
9
|
-
<component name="ChangeListManager">
|
|
10
|
-
<list default="true" id="dcd03e48-895c-4531-9c6b-999b4eb29984" name="Default Changelist" comment="">
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/../ios/RNOkayCam.swift" beforeDir="false" afterPath="$PROJECT_DIR$/../ios/RNOkayCam.swift" afterDir="false" />
|
|
12
|
-
</list>
|
|
13
|
-
<option name="SHOW_DIALOG" value="false" />
|
|
14
|
-
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
15
|
-
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
16
|
-
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
17
|
-
</component>
|
|
18
|
-
<component name="ExternalProjectsData">
|
|
19
|
-
<projectState path="$PROJECT_DIR$">
|
|
20
|
-
<ProjectState />
|
|
21
|
-
</projectState>
|
|
22
|
-
</component>
|
|
23
|
-
<component name="Git.Settings">
|
|
24
|
-
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/.." />
|
|
25
|
-
</component>
|
|
26
|
-
<component name="GitSEFilterConfiguration">
|
|
27
|
-
<file-type-list>
|
|
28
|
-
<filtered-out-file-type name="LOCAL_BRANCH" />
|
|
29
|
-
<filtered-out-file-type name="REMOTE_BRANCH" />
|
|
30
|
-
<filtered-out-file-type name="TAG" />
|
|
31
|
-
<filtered-out-file-type name="COMMIT_BY_MESSAGE" />
|
|
32
|
-
</file-type-list>
|
|
33
|
-
</component>
|
|
34
|
-
<component name="ProjectId" id="20OnRh4fdjMjOrINVhdGIVlXNLA" />
|
|
35
|
-
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
|
36
|
-
<component name="ProjectViewState">
|
|
37
|
-
<option name="hideEmptyMiddlePackages" value="true" />
|
|
38
|
-
<option name="showLibraryContents" value="true" />
|
|
39
|
-
</component>
|
|
40
|
-
<component name="PropertiesComponent">
|
|
41
|
-
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
|
|
42
|
-
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
|
|
43
|
-
<property name="RunOnceActivity.cidr.known.project.marker" value="true" />
|
|
44
|
-
<property name="android.sdk.path" value="$USER_HOME$/Library/Android/sdk" />
|
|
45
|
-
<property name="cidr.known.project.marker" value="true" />
|
|
46
|
-
<property name="project.structure.last.edited" value="Dependencies" />
|
|
47
|
-
<property name="project.structure.proportion" value="0.17" />
|
|
48
|
-
<property name="project.structure.side.proportion" value="0.2" />
|
|
49
|
-
<property name="settings.editor.selected.configurable" value="reference.settingsdialog.project.gradle" />
|
|
50
|
-
</component>
|
|
51
|
-
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
|
|
52
|
-
<component name="SvnConfiguration">
|
|
53
|
-
<configuration />
|
|
54
|
-
</component>
|
|
55
|
-
<component name="TaskManager">
|
|
56
|
-
<task active="true" id="Default" summary="Default task">
|
|
57
|
-
<changelist id="dcd03e48-895c-4531-9c6b-999b4eb29984" name="Default Changelist" comment="" />
|
|
58
|
-
<created>1635924494769</created>
|
|
59
|
-
<option name="number" value="Default" />
|
|
60
|
-
<option name="presentableId" value="Default" />
|
|
61
|
-
<updated>1635924494769</updated>
|
|
62
|
-
</task>
|
|
63
|
-
<servers />
|
|
64
|
-
</component>
|
|
65
|
-
</project>
|