Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Fix #1493: Themes / Dark Mode Support #1324

Merged
merged 87 commits into from
Sep 6, 2019
Merged
Show file tree
Hide file tree
Changes from 81 commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
09c10ab
Added new theming mechanism built off of JSON files.
jhreis Jul 18, 2019
c5fe2cc
Added Transparencies to theme file.
jhreis Aug 2, 2019
da616c3
Added private theme.
jhreis Aug 2, 2019
08d688d
Added `styleChildren` call to all `Themeable` children.
jhreis Aug 2, 2019
6760afb
Added some clarifying comments.
jhreis Aug 2, 2019
f357eb1
Fixed theming issue with home page and tabs.
jhreis Aug 2, 2019
5c9a457
Unselected TabBarCell now follow addressBar color for deselection.
jhreis Aug 9, 2019
20ae592
Fixed up URL / Address bar coloring.
jhreis Aug 9, 2019
f4eaed8
Added `accent` color to theming file.
jhreis Aug 10, 2019
cb924f4
Updated more attributes throughout, removing some now unneeded consta…
jhreis Aug 10, 2019
517f002
Removed all `BrowserColor` code.
jhreis Aug 10, 2019
0abb459
Fixed up tab tray to respect better color theming.
jhreis Aug 13, 2019
b8def89
Removed TabTray color constants.
jhreis Aug 13, 2019
77d2807
Using Theme.of in more necessary places.
jhreis Aug 13, 2019
b4611aa
Refactored ToolbarButton to be more stylistically flexible.
jhreis Aug 13, 2019
b1c9c52
Fixed up TabsButton for theming.
jhreis Aug 13, 2019
3b7c2e9
Fixed reader mode button to use accent color for selection.
jhreis Aug 13, 2019
c93646e
migrate to Swift5/Xcode 11
iccub Jun 16, 2019
afbc261
Update Alamofire to beta 7.
iccub Aug 7, 2019
a960475
Update tests to swift5, fix SearchSuggestion Alamofire change.
iccub Aug 7, 2019
e4fc23c
Cleaned up TabsButton creation.
jhreis Aug 13, 2019
b1539b2
Added theming comment to TabTray for unconventional logic.
jhreis Aug 13, 2019
1c25db3
Fixed up the private mode toggle button.
jhreis Aug 13, 2019
979d5e6
Updated main menu to support themes.
jhreis Aug 14, 2019
58b21ae
Relocated theming json files.
jhreis Aug 14, 2019
616effa
Update bootstrap script and KIF framework.
iccub Aug 14, 2019
705f07e
Added theme file navigation for identifying desired themes.
jhreis Aug 15, 2019
e250b3b
Merge remote-tracking branch 'iccub/feature/swift5' into themes
jhreis Aug 16, 2019
3fad383
Wired in settings UI, and created default theming enum to support this.
jhreis Aug 17, 2019
a9b317a
Actually use preference for setting theme!
jhreis Aug 17, 2019
f19172f
Updated JSON file for dark mode.
jhreis Aug 17, 2019
f94b3ff
Updated the theme preference for private mode with correct UUID.
jhreis Aug 17, 2019
ea3a992
Updated prefferedStatusBarStyle.
jhreis Aug 17, 2019
381ab45
Removed stale reference to tab.theme, which was never used.
jhreis Aug 17, 2019
61c4ca5
Removed hardcoded theme reference to top toolbar.
jhreis Aug 17, 2019
2fea40f
Switched over to solely using dynamic themes.
jhreis Aug 17, 2019
e224369
Fixed up most Settings children VC's colorings.
jhreis Aug 20, 2019
4b36537
TabBar tabs now update immediately on theme change.
jhreis Aug 20, 2019
91aa527
Moved `appearance()` adjustments to theme extension.
jhreis Aug 20, 2019
8a5e4f3
Added color adjustment to navigation headers.
jhreis Aug 21, 2019
1029ff8
Fixed up table coloring for history / bookmarks.
jhreis Aug 21, 2019
e001f2a
Color adjustments for history / bookmark headers.
jhreis Aug 21, 2019
d712f4d
Improved bookmark editing colors.
jhreis Aug 21, 2019
3fd9d21
Tab bar side glow effect respects theme now.
jhreis Aug 22, 2019
b15b4a2
Close button on tab bar now colored correctly.
jhreis Aug 22, 2019
033795c
Initial OS level integration.
jhreis Aug 22, 2019
708b6fd
Much better OS theming support for hard-to-control-views.
jhreis Aug 22, 2019
4d4bd1e
Merge branch 'beta' into themes
jhreis Aug 22, 2019
9eaf35e
Merge branch 'development' into themes
jhreis Aug 22, 2019
3066bd7
Merge branch 'development' into themes
jhreis Aug 22, 2019
524ff87
Onboarding theme support!
jhreis Aug 23, 2019
dbdc8ef
Shield panel now has theming support.
jhreis Aug 23, 2019
78b2ac7
Updated light theme colors.
jhreis Aug 23, 2019
0b4bb4b
Merge branch 'development' into themes
jhreis Aug 23, 2019
52da737
Fixed on-boarding search engine table color.
jhreis Aug 23, 2019
3d2cec8
Fixed up passcode UI.
jhreis Aug 24, 2019
8f78047
Removed `system` theme option from iOS 12
jhreis Aug 24, 2019
3814663
Keyboard adjusted based on theme.
jhreis Aug 24, 2019
ce12c37
Fixed label coloring for iOS 12.
jhreis Aug 24, 2019
e3c4fd8
Modified selection mechanism for private mode button.
jhreis Aug 24, 2019
0e5e5ac
Removed `BrowserColor`.
jhreis Aug 24, 2019
771f176
Switched to window system theme override.
jhreis Aug 24, 2019
8fe3082
Added UIView override, since Window override not enough.
jhreis Aug 27, 2019
f9efb39
Added theming for sync screens.
jhreis Aug 27, 2019
206b38a
Merge branch 'development' into themes
jhreis Aug 27, 2019
c9da2e7
Fixed up addressbar, home, and header color usage.
jhreis Aug 29, 2019
6971d15
Merge branch 'development' into themes
jhreis Aug 30, 2019
b391bfc
Updated dark and private theme files.
jhreis Aug 30, 2019
d35ad4b
Updated all theme copy and made it translatable.
jhreis Aug 30, 2019
2db24bb
Merge branch 'development' into themes
jhreis Aug 31, 2019
f6f1f86
Merge branch 'development' into themes
jhreis Aug 31, 2019
82d429e
Fixed up theme for search suggestions.
jhreis Aug 31, 2019
0877f49
Updated Light and Dark metadata theme files.
jhreis Aug 31, 2019
30a917e
Merge branch 'development' into themes
jhreis Sep 3, 2019
aac7073
Merge branch 'development' into themes
jhreis Sep 3, 2019
5e85e5c
Private mode button now themed correctly when opening menu.
jhreis Sep 4, 2019
1672219
Merge branch 'development' into themes
jhreis Sep 4, 2019
7e0d126
Updated iOS 12 theming to better support upgrading to iOS 13.
jhreis Sep 5, 2019
e9de252
Merge branch 'development' into themes
jhreis Sep 5, 2019
cc80f41
Merge branch 'development' into themes
jhreis Sep 6, 2019
b0ee471
Fix #1488: Changing Private Browsing Only, adjusts theme correctly.
jhreis Sep 6, 2019
21b880f
Cleaned up a bunch of comments and cleaned up code.
jhreis Sep 6, 2019
bc537a8
Switched from using tab.type to tab.theme for theme change detection.
jhreis Sep 6, 2019
38f5e5d
Removed unneeded comment.
jhreis Sep 6, 2019
c8b5721
Cleaned up comments.
jhreis Sep 6, 2019
50fb67f
Improved ShieldView API for themeable interface.
jhreis Sep 6, 2019
4c90ca8
Removed DefaultTheme's `id` prop (use rawValue).
jhreis Sep 6, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions BraveShared/BraveStrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,14 @@ extension Strings {
public static let ShareWithMenuItem = NSLocalizedString("ShareWithMenuItem", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Share with...", comment: "Title for sharing url menu item")
public static let DownloadsMenuItem = NSLocalizedString("DownloadsMenuItem", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Downloads", comment: "Title for downloads menu item")
public static let DownloadsPanelEmptyStateTitle = NSLocalizedString("DownloadsPanelEmptyStateTitle", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Downloaded files will show up here.", comment: "Title for when a user has nothing downloaded onto their device, and the list is empty.")

// MARK: - Themes

public static let ThemesDisplayBrightness = NSLocalizedString("ThemesDisplayBrightness", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Display & Brightness", comment: "Setting to choose the user interface theme for normal browsing mode, contains choices like 'light' or 'dark' themes")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember Sriram talking about changing this setting title, have we decided on it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't heard anything, we're going with this for now, can adjust in future 🤷‍♂

public static let ThemesDisplayBrightnessFooter = NSLocalizedString("ThemesDisplayBrightnessFooter", tableName: "BraveShared", bundle: Bundle.braveShared, value: "These settings are not applied in private browsing mode.", comment: "Text specifying that the above setting does not impact the user interface while they user is in private browsing mode.")
public static let ThemesAutomaticOption = NSLocalizedString("ThemesAutomaticOption", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Automatic", comment: "Selection to automatically color/style the user interface.")
public static let ThemesLightOption = NSLocalizedString("ThemesLightOption", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Light", comment: "Selection to color/style the user interface with a light theme.")
public static let ThemesDarkOption = NSLocalizedString("ThemesDarkOption", tableName: "BraveShared", bundle: Bundle.braveShared, value: "Dark", comment: "Selection to color/style the user interface with a dark theme")
}

// MARK: - Quick Actions
Expand Down
1 change: 1 addition & 0 deletions BraveShared/BraveUX.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// TODO: Theme: Clean up colors
public struct BraveUX {
public static let BraveCommunityURL = URL(string: "https://community.brave.com/")!
public static let BravePrivacyURL = URL(string: "https://brave.com/privacy/")!
Expand Down
18 changes: 17 additions & 1 deletion Client.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -492,13 +492,15 @@
5D1DC57220AE005400905E5A /* JSInjector.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D1DC56820AE005400905E5A /* JSInjector.swift */; };
5D1DC57320AE005400905E5A /* SyncSite.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D1DC56920AE005400905E5A /* SyncSite.swift */; };
5D1DC57420AE005400905E5A /* ios-sync.js in Resources */ = {isa = PBXBuildFile; fileRef = 5D1DC56A20AE005400905E5A /* ios-sync.js */; };
5D21AE082303B70E00B30D97 /* Themes in Resources */ = {isa = PBXBuildFile; fileRef = 5D21AE002303B70E00B30D97 /* Themes */; };
5D24AF8221BA459000F9506A /* BlocklistName.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D24AF8121BA459000F9506A /* BlocklistName.swift */; };
5D24AF8421BA489A00F9506A /* ContentBlocker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D24AF8321BA489A00F9506A /* ContentBlocker.swift */; };
5D24AF9021BA4D7700F9506A /* ContentBlockerRegion.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D24AF8F21BA4D7700F9506A /* ContentBlockerRegion.swift */; };
5D6DDEF3214003A6001FF0AE /* DAU.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D6DDEE6214003A6001FF0AE /* DAU.swift */; };
5D6DDEFE2141B6A1001FF0AE /* Preferences.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D6DDEF62141B6A0001FF0AE /* Preferences.swift */; };
5D6DDF0021428CF0001FF0AE /* DAUTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D6DDEFF21428CF0001FF0AE /* DAUTests.swift */; };
5D7001C222249F7B00E576FB /* ShortNameToFileMapping.json in Resources */ = {isa = PBXBuildFile; fileRef = 5D7001BA22249F7A00E576FB /* ShortNameToFileMapping.json */; };
5D8AE6AF230C76B60096C845 /* AppearanceExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D8AE6AE230C76B60096C845 /* AppearanceExtensions.swift */; };
5DE5250D218CE92C000DFAA6 /* block-ads.json in Resources */ = {isa = PBXBuildFile; fileRef = 5DE52508218CE92B000DFAA6 /* block-ads.json */; };
5DE5250E218CE92C000DFAA6 /* block-images.json in Resources */ = {isa = PBXBuildFile; fileRef = 5DE52509218CE92B000DFAA6 /* block-images.json */; };
5DE5250F218CE92C000DFAA6 /* upgrade-http.json in Resources */ = {isa = PBXBuildFile; fileRef = 5DE5250A218CE92B000DFAA6 /* upgrade-http.json */; };
Expand Down Expand Up @@ -1863,13 +1865,15 @@
5D1DC56820AE005400905E5A /* JSInjector.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = JSInjector.swift; sourceTree = "<group>"; };
5D1DC56920AE005400905E5A /* SyncSite.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SyncSite.swift; sourceTree = "<group>"; };
5D1DC56A20AE005400905E5A /* ios-sync.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = "ios-sync.js"; sourceTree = "<group>"; };
5D21AE002303B70E00B30D97 /* Themes */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Themes; sourceTree = "<group>"; };
5D24AF8121BA459000F9506A /* BlocklistName.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BlocklistName.swift; sourceTree = "<group>"; };
5D24AF8321BA489A00F9506A /* ContentBlocker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentBlocker.swift; sourceTree = "<group>"; };
5D24AF8F21BA4D7700F9506A /* ContentBlockerRegion.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentBlockerRegion.swift; sourceTree = "<group>"; };
5D6DDEE6214003A6001FF0AE /* DAU.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DAU.swift; sourceTree = "<group>"; };
5D6DDEF62141B6A0001FF0AE /* Preferences.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Preferences.swift; sourceTree = "<group>"; };
5D6DDEFF21428CF0001FF0AE /* DAUTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DAUTests.swift; sourceTree = "<group>"; };
5D7001BA22249F7A00E576FB /* ShortNameToFileMapping.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = ShortNameToFileMapping.json; sourceTree = "<group>"; };
5D8AE6AE230C76B60096C845 /* AppearanceExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppearanceExtensions.swift; path = Extensions/AppearanceExtensions.swift; sourceTree = "<group>"; };
5DE52508218CE92B000DFAA6 /* block-ads.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "block-ads.json"; sourceTree = "<group>"; };
5DE52509218CE92B000DFAA6 /* block-images.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "block-images.json"; sourceTree = "<group>"; };
5DE5250A218CE92B000DFAA6 /* upgrade-http.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "upgrade-http.json"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2769,6 +2773,7 @@
595E0EE021CAEF5B00813D49 /* FileManagerExtension.swift */,
592F521D2217327B0078395E /* HttpCookieExtension.swift */,
F930CDAD2270015C00A23FE1 /* U2FExtensions.swift */,
5D8AE6AE230C76B60096C845 /* AppearanceExtensions.swift */,
);
indentWidth = 4;
name = Extensions;
Expand Down Expand Up @@ -3398,6 +3403,14 @@
path = sync;
sourceTree = "<group>";
};
5D26E89C22E117660015D7E9 /* Themes */ = {
isa = PBXGroup;
children = (
7B3631E91C244FEE00D12AF9 /* Theme.swift */,
);
path = Themes;
sourceTree = "<group>";
};
5D6DDEDF214003A6001FF0AE /* Analytics */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -3708,7 +3721,7 @@
E65607601C08B4E200534B02 /* SearchInputView.swift */,
E63ED7D71BFCD9990097D08E /* LoginTableViewCell.swift */,
C4E3984B1D21F2FD004E89BA /* TabTrayButtonExtensions.swift */,
7B3631E91C244FEE00D12AF9 /* Theme.swift */,
5D26E89C22E117660015D7E9 /* Themes */,
59A68B1F857A8638598A63A0 /* TwoLineCell.swift */,
D863C8E31F68BFC20058D95F /* GradientProgressBar.swift */,
27D87C2D2152B50200FB55C6 /* GradientView.swift */,
Expand Down Expand Up @@ -4259,6 +4272,7 @@
D03F8F22200EAC1E003C2224 /* AllFramesAtDocumentStart.js */,
D0FCF8041FE4772D004A7995 /* MainFrameAtDocumentEnd.js */,
D0FCF8051FE4772D004A7995 /* MainFrameAtDocumentStart.js */,
5D21AE002303B70E00B30D97 /* Themes */,
3BC659581E5BA505006D560F /* top_sites.json */,
3BC659481E5BA4AE006D560F /* TopSites */,
C6345ECA2113B3A000CFB983 /* SearchPlugins */,
Expand Down Expand Up @@ -5225,6 +5239,7 @@
4422D4AD21BFFB7600BF1855 /* LICENSE in Resources */,
5EB57D0222FDC0CB00A07325 /* FullscreenHelper.js in Resources */,
E4B7B7641A793CF20022C5E0 /* CharisSILR.ttf in Resources */,
5D21AE082303B70E00B30D97 /* Themes in Resources */,
4422D56D21BFFB7F00BF1855 /* make_unicode_groups.py in Resources */,
E4B7B7681A793CF20022C5E0 /* FiraSans-Bold.ttf in Resources */,
E4B7B7781A793CF20022C5E0 /* FiraSans-Italic.ttf in Resources */,
Expand Down Expand Up @@ -5874,6 +5889,7 @@
A83E5AB71C1D993D0026D912 /* UIPasteboardExtensions.swift in Sources */,
C6B81B8A212D84BD00996084 /* ImageCacheType.swift in Sources */,
D8EFFA0C1FF5B1FA001D3A09 /* NavigationRouter.swift in Sources */,
5D8AE6AF230C76B60096C845 /* AppearanceExtensions.swift in Sources */,
D0E55C4F1FB4FD23006DC274 /* FormPostHelper.swift in Sources */,
E650754E1E37F6AE006961AC /* GeometryExtensions.swift in Sources */,
D3972BF41C22412B00035B87 /* TitleActivityItemProvider.swift in Sources */,
Expand Down
14 changes: 7 additions & 7 deletions Client/Application/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UIViewControllerRestorati
// Override point for customization after application launch.
var shouldPerformAdditionalDelegateHandling = true

// BVC generally handles theme applying, but in some instances views are established
// before then (e.g. passcode, so can be privacy concern, meaning this should be called ASAP)
// In order to properly apply background and align this with the rest of the UI (keyboard / header)
// this needs to be called. UI could be handled internally to view systems,
// but then keyboard may misalign with Brave selected theme override
Theme.of(nil).applyAppearanceProperties()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we could have another Theme method for getting theme by preference/privacy mode, Theme.of(nil) isn't readable, you need to dig into the method to see what is gonna happen

something like Theme.default or Theme.byPrivacyMode

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main thing is ideally this is quite rare. I ma primary hesitant to use a .default or .mode since it should be so rarely used I don't want to make it super convenient. Otherwise, it may just be used naively.


UIScrollView.doBadSwizzleStuff()

#if BUDDYBUILD
Expand Down Expand Up @@ -266,13 +273,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UIViewControllerRestorati
}

AdblockResourceDownloader.shared.startLoading()

UINavigationBar.appearance().tintColor = BraveUX.BraveOrange

(UISwitch.appearance() as UISwitch).do {
$0.tintColor = BraveUX.SwitchTintColor
$0.onTintColor = BraveUX.BraveOrange
}

return shouldPerformAdditionalDelegateHandling
}
Expand Down
5 changes: 4 additions & 1 deletion Client/Application/ClientPreferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,14 @@ extension Preferences {
static let blockPopups = Option<Bool>(key: "general.block-popups", default: true)
/// Controls how the tab bar should be shown (or not shown)
static let tabBarVisibility = Option<Int>(key: "general.tab-bar-visiblity", default: TabBarVisibility.always.rawValue)
/// Defines the user's normal browsing theme
/// `system`, follows the current OS display mode
static let themeNormalMode = Option<String>(key: "general.normal-mode-theme", default: Theme.DefaultTheme.system.id)
static let themePrivateMode = Option<String>(key: "general.private-mode-theme", default: Theme.DefaultTheme.private.id)
/// Specifies whether the bookmark button is present on toolbar
static let showBookmarkToolbarShortcut = Option<Bool>(key: "general.show-bookmark-toolbar-shortcut", default: UIDevice.isIpad)
/// Sets Desktop UA for iPad by default (iOS 13+ & iPad only)
static let alwaysRequestDesktopSite = Option<Bool>(key: "general.always-request-desktop-site", default: UIDevice.isIpad)

/// Whether or not a user has enabled Night Mode.
///
/// Currently unused
Expand Down
39 changes: 39 additions & 0 deletions Client/Assets/Themes/ACE618A3-D6FC-45A4-94F2-1793C40AE927.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"uuid": "ACE618A3-D6FC-45A4-94F2-1793C40AE927",
"title": "Default light",
"url": "www.brave.com",
"description": "The standard default light theme",
"thumbnail": "https://www.google.com",
"isDark": false,
"enabled": true,

"colors": {
"header": "0xf4f4f4",
"footer": "0xf8f8f8",
"home": "0xe8e8e8",
"addressBar": "0xffffff",
"border": "0x000000",
"accent": "0xfb542b",
"tints": {
"home": "0x434351",
"header": "0x434351",
"footer": "0x434351",
"addressBar": "0x434351"
},
"transparencies": {
"addressBarAlpha": 1.0,
"borderAlpha": 0.2,
},
"stats": {
"ads": "0xFA4214",
"trackers": "0x742BC4",
"httpse": "0x9339D4",
"timeSaved": "0x222326"
}
},
"images": {
"header": "https://www.google.com",
"footer": "https://www.google.com",
"home": "https://www.google.com",
}
}
40 changes: 40 additions & 0 deletions Client/Assets/Themes/B900A41F-2C02-4664-9DE4-C170956339AC.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"uuid": "B900A41F-2C02-4664-9DE4-C170956339AC",
"title": "Default dark",
"url": "www.brave.com",
"description": "The standard default dark theme",
"thumbnail": "https://www.google.com",
"isDark": true,
"enabled": true,

"colors": {
"header": "0x282828",
"footer": "0x282828",
"home": "0x1c1c1c",
"addressBar": "0x444444",
"border": "0xffffff",
"accent": "0xff631c",
"tints": {
"home": "0xE7E6E9",
"header": "0xE7E6E9",
"footer": "0xE7E6E9",
"addressBar": "0xE7E6E9"
},
"transparencies": {
"addressBarAlpha": 1.0,
"borderAlpha": 0.2,
},
"stats": {
"ads": "0xFA4214",
"trackers": "0x1bc760",
"httpse": "0x9339D4",
"timeSaved": "0xffffff"
}
},
"images": {
"header": "https://www.google.com",
"footer": "https://www.google.com",
"home": "https://www.google.com",
}
}

39 changes: 39 additions & 0 deletions Client/Assets/Themes/C5CB0D9A-5467-432C-AB35-1A78C55CFB41.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"uuid": "C5CB0D9A-5467-432C-AB35-1A78C55CFB41",
"title": "Default private",
"url": "www.brave.com",
"description": "The standard default private theme",
"thumbnail": "https://www.google.com",
"isDark": true,
"enabled": true,

"colors": {
"header": "0x1B0C32",
"footer": "0x1B0C32",
"home": "0x301B5A",
"addressBar": "0x3D2742",
"border": "0xffffff",
"accent": "0xcf68ff",
"tints": {
"home": "0xE7E6E9",
"header": "0xE7E6E9",
"footer": "0xE7E6E9",
"addressBar": "0xE7E6E9"
},
"transparencies": {
"addressBarAlpha": 1.0,
"borderAlpha": 0.2,
},
"stats": {
"ads": "0xFA4214",
"trackers": "0x1bc760",
"httpse": "0x9339D4",
"timeSaved": "0xffffff"
}
},
"images": {
"header": "https://www.google.com",
"footer": "https://www.google.com",
"home": "https://www.google.com",
}
}
Loading