Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
634e461c
Unverified
Commit
634e461c
authored
Sep 17, 2020
by
younghwan
Committed by
GitHub
Sep 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply darkmode style (#65182)
parent
0d945a1a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
5 deletions
+24
-5
launch_background.xml
...roid.tmpl/app/src/main/res/drawable/launch_background.xml
+1
-1
styles.xml
...app/android.tmpl/app/src/main/res/values-night/styles.xml
+18
-0
styles.xml
...lates/app/android.tmpl/app/src/main/res/values/styles.xml
+4
-4
template_manifest.json
packages/flutter_tools/templates/template_manifest.json
+1
-0
No files found.
packages/flutter_tools/templates/app/android.tmpl/app/src/main/res/drawable/launch_background.xml
View file @
634e461c
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list
xmlns:android=
"http://schemas.android.com/apk/res/android"
>
<item
android:drawable=
"
@android:color/white
"
/>
<item
android:drawable=
"
?android:colorBackground
"
/>
<!-- You can insert your own image assets here -->
<!-- <item>
...
...
packages/flutter_tools/templates/app/android.tmpl/app/src/main/res/values-night/styles.xml
0 → 100644
View file @
634e461c
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style
name=
"LaunchTheme"
parent=
"@android:style/Theme.Black.NoTitleBar"
>
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item
name=
"android:windowBackground"
>
@drawable/launch_background
</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style
name=
"NormalTheme"
parent=
"@android:style/Theme.Black.NoTitleBar"
>
<item
name=
"android:windowBackground"
>
?android:colorBackground
</item>
</style>
</resources>
packages/flutter_tools/templates/app/android.tmpl/app/src/main/res/values/styles.xml
View file @
634e461c
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting -->
<style
name=
"LaunchTheme"
parent=
"@android:style/Theme.
Black
.NoTitleBar"
>
<!-- Theme applied to the Android Window while the process is starting
when the OS's Dark Mode setting is off
-->
<style
name=
"LaunchTheme"
parent=
"@android:style/Theme.
Light
.NoTitleBar"
>
<!-- Show a splash screen on the activity. Automatically removed when
Flutter draws its first frame -->
<item
name=
"android:windowBackground"
>
@drawable/launch_background
</item>
...
...
@@ -12,7 +12,7 @@
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style
name=
"NormalTheme"
parent=
"@android:style/Theme.
Black
.NoTitleBar"
>
<item
name=
"android:windowBackground"
>
@android:color/white
</item>
<style
name=
"NormalTheme"
parent=
"@android:style/Theme.
Light
.NoTitleBar"
>
<item
name=
"android:windowBackground"
>
?android:colorBackground
</item>
</style>
</resources>
packages/flutter_tools/templates/template_manifest.json
View file @
634e461c
...
...
@@ -27,6 +27,7 @@
"templates/app/android.tmpl/app/src/main/res/mipmap-xxhdpi/ic_launcher.png"
,
"templates/app/android.tmpl/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png"
,
"templates/app/android.tmpl/app/src/main/res/values/styles.xml"
,
"templates/app/android.tmpl/app/src/main/res/values-night/styles.xml"
,
"templates/app/android.tmpl/app/src/profile/AndroidManifest.xml.tmpl"
,
"templates/app/android.tmpl/gradle/wrapper/gradle-wrapper.properties"
,
"templates/app/android.tmpl/gradle.properties.tmpl"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment