Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin to implement new styles for dialogs
- Mostly change the colours and text styles to match CorsixTH design. There are still a few places where it's visibly wrong, and it's difficult to match up with the bitmap font exactly whilst still allowing control by the user display preferences. Notably the dialog buttons and the checkboxes don't follow any particular colour scheme yet. - Provide a back button on the save and settings dialogs to make it easier for gesture based controls
- Loading branch information
1 parent
8375cf8
commit ac7f4a7
Showing
17 changed files
with
264 additions
and
29 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:top="2dp" android:bottom="2dp" android:right="2dp" android:left="2dp"> | ||
<shape> | ||
<solid android:color="@color/cth_window_caption" /> | ||
</shape> | ||
</item> | ||
<item> | ||
<shape> | ||
<stroke | ||
android:width="1dp" | ||
android:color="@color/cth_window_caption_highlight" /> | ||
</shape> | ||
</item> | ||
<item android:bottom="1dp" android:right="1dp"> | ||
<shape> | ||
<padding | ||
android:left="0dp" | ||
android:top="0dp" | ||
android:bottom="1dp" | ||
android:right="1dp" /> | ||
<stroke | ||
android:width="1dp" | ||
android:color="@color/cth_window_caption_shadow" /> | ||
</shape> | ||
</item> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item android:top="2dp" android:bottom="2dp" android:right="2dp" android:left="2dp"> | ||
<shape android:layout_width="wrap_content"> | ||
<solid android:color="@color/cth_window_background" /> | ||
</shape> | ||
</item> | ||
<item> | ||
<shape> | ||
<stroke | ||
android:width="1dp" | ||
android:color="@color/cth_window_caption_shadow" /> | ||
</shape> | ||
</item> | ||
<item android:bottom="1dp" android:right="1dp"> | ||
<shape> | ||
<padding | ||
android:left="0dp" | ||
android:top="0dp" | ||
android:bottom="1dp" | ||
android:right="1dp" /> | ||
<stroke | ||
android:width="1dp" | ||
android:color="@color/cth_window_caption_highlight" /> | ||
</shape> | ||
</item> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,32 @@ | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
android:layout_height="match_parent" | ||
android:background="@color/cth_window_background" | ||
android:orientation="vertical"> | ||
|
||
<androidx.appcompat.widget.Toolbar | ||
android:id="@+id/toolbar" | ||
style="ToolbarStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:minHeight="?attr/actionBarSize" | ||
android:theme="?attr/actionBarTheme"> | ||
|
||
<FrameLayout | ||
style="@style/ToolbarTitleBackground" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content"> | ||
|
||
<TextView | ||
android:id="@+id/toolbar_title" | ||
style="@style/ToolbarTitle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" /> | ||
</FrameLayout> | ||
</androidx.appcompat.widget.Toolbar> | ||
|
||
<FrameLayout | ||
android:id="@+id/save" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
android:layout_height="match_parent" /> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,34 @@ | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
android:layout_height="match_parent" | ||
android:background="@color/cth_window_background" | ||
android:orientation="vertical"> | ||
|
||
<androidx.appcompat.widget.Toolbar | ||
android:id="@+id/toolbar" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
style="ToolbarStyle" | ||
android:minHeight="?attr/actionBarSize" | ||
android:theme="?attr/actionBarTheme"> | ||
|
||
<FrameLayout | ||
style="@style/ToolbarTitleBackground" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content"> | ||
|
||
<TextView | ||
android:id="@+id/toolbar_title" | ||
style="@style/ToolbarTitle" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/title_activity_settings" /> | ||
</FrameLayout> | ||
</androidx.appcompat.widget.Toolbar> | ||
|
||
<FrameLayout | ||
android:id="@+id/settings" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"/> | ||
android:layout_height="match_parent" /> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<resources> | ||
<color name="light_blue_600">#FF039BE5</color> | ||
<color name="light_blue_900">#FF01579B</color> | ||
<color name="light_blue_A200">#FF40C4FF</color> | ||
<color name="light_blue_A400">#FF00B0FF</color> | ||
<color name="black_overlay">#66000000</color> | ||
<color name="cth_window_background">#9a92c6</color> | ||
<color name="cth_window_text">#fdfdfd</color> | ||
<color name="cth_window_secondary">#DDDDDD</color> | ||
<color name="cth_window_text_shadow">#2b2b2b</color> | ||
<color name="cth_window_caption">#aea6da</color> | ||
<color name="cth_window_caption_highlight">#d6ceff</color> | ||
<color name="cth_window_caption_shadow">#867eb2</color> | ||
|
||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.