Skip to content

Commit 92a3aaa

Browse files
committed
Sample app: Web page supports dark mode
1 parent cb531c5 commit 92a3aaa

File tree

4 files changed

+32
-2
lines changed

4 files changed

+32
-2
lines changed

InAppSettingsKitSampleApp/Base.lproj/settings_about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html lang="en">
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6-
<link rel="StyleSheet" href="settings_about.css" type="text/css">
6+
<link rel="StyleSheet" href="../settings_about.css" type="text/css">
77
<title>Untitled</title>
88
</head>
99

InAppSettingsKitSampleApp/IASKSampleApp.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
AAAB97DC246203DF00C34803 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AAAB97DE246203DF00C34803 /* Main.storyboard */; };
2626
AAB8389B12846D110042FF80 /* CustomViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = AAB8389A12846D110042FF80 /* CustomViewCell.xib */; };
2727
AAB838A012846D850042FF80 /* CustomViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = AAB8389F12846D850042FF80 /* CustomViewCell.m */; };
28+
AAE854282EAA679B00B3CE73 /* settings_about.css in Resources */ = {isa = PBXBuildFile; fileRef = AAE854272EAA679900B3CE73 /* settings_about.css */; };
2829
AAF478871A239A1A000A0A74 /* Launch.xib in Resources */ = {isa = PBXBuildFile; fileRef = AAF478861A239A1A000A0A74 /* Launch.xib */; };
2930
E42ADAEB1682057B00295D85 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = E42ADAEA1682057B00295D85 /* [email protected] */; };
3031
E42B9CB126F8F0BD00144EB1 /* InAppSettingsKit in Frameworks */ = {isa = PBXBuildFile; productRef = E42B9CB026F8F0BD00144EB1 /* InAppSettingsKit */; };
@@ -86,6 +87,7 @@
8687
AAB8389E12846D850042FF80 /* CustomViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CustomViewCell.h; sourceTree = "<group>"; };
8788
AAB8389F12846D850042FF80 /* CustomViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CustomViewCell.m; sourceTree = "<group>"; };
8889
AAD676AD24D0804300A74C64 /* pt-PT */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "pt-PT"; path = "../Sources/InAppSettingsKit/Resources/pt-PT.lproj/IASKLocalizable.strings"; sourceTree = "<group>"; };
90+
AAE854272EAA679900B3CE73 /* settings_about.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; path = settings_about.css; sourceTree = "<group>"; };
8991
AAF478861A239A1A000A0A74 /* Launch.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = Launch.xib; sourceTree = "<group>"; };
9092
B4AF7EAD256311EE00332606 /* In App Settings Kit.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "In App Settings Kit.entitlements"; sourceTree = "<group>"; };
9193
B4AF7EB225631AF600332606 /* Base */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = Base; path = Base.lproj/settings_about.html; sourceTree = "<group>"; };
@@ -197,6 +199,7 @@
197199
AA1552131F79054700F2CEA1 /* IASKLocalizable.strings */,
198200
AA092DC415B73A0500081FBC /* settings_about.html */,
199201
E459FF8622C4B919002DBB60 /* Images.xcassets */,
202+
AAE854272EAA679900B3CE73 /* settings_about.css */,
200203
E42ADAEF1682072200295D85 /* LaunchImages */,
201204
FB81CA03155BC7C900CEF887 /* Images */,
202205
6A1F35ED11490727003E6295 /* Icon.png */,
@@ -400,6 +403,7 @@
400403
FB81CA0B155BC7C900CEF887 /* [email protected] in Resources */,
401404
AAA53E8F15B057FD00C6558B /* 20-gear2Highlighted.png in Resources */,
402405
AA092DC915B73A0500081FBC /* settings_about.html in Resources */,
406+
AAE854282EAA679B00B3CE73 /* settings_about.css in Resources */,
403407
AAAB97DC246203DF00C34803 /* Main.storyboard in Resources */,
404408
AAA8D0C422C14BD700631015 /* Settings.bundle in Resources */,
405409
E42ADAEB1682057B00295D85 /* [email protected] in Resources */,

InAppSettingsKitSampleApp/de.lproj/settings_about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html lang="en">
44
<head>
55
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6-
<link rel="StyleSheet" href="settings_about.css" type="text/css">
6+
<link rel="StyleSheet" href="../settings_about.css" type="text/css">
77
<title>Ohne Titel</title>
88
</head>
99

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
:root {
2+
color-scheme: light dark;
3+
}
4+
5+
html, body {
6+
height: 100%;
7+
margin: 0;
8+
padding: 0;
9+
}
10+
11+
body {
12+
margin:0;
13+
background-color:transparent;
14+
-webkit-user-select:none;
15+
-webkit-touch-callout:none;
16+
-webkit-text-size-adjust: none;
17+
-webkit-tap-highlight-color: rgba(0,0,0,0);
18+
}
19+
20+
@media (prefers-color-scheme: dark) {
21+
body {
22+
background-color: #000;
23+
}
24+
}
25+
26+

0 commit comments

Comments
 (0)