Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
225
Merge Requests
17
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
48c96361
Commit
48c96361
authored
1 hour ago
by
Martin Santangelo
Browse files
Options
Download
(feat) rename style and fix initial theme
parent
cb4cc075
feat/themes-support
1 merge request
!513
theme support
Changes
14
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
26 additions
and
24 deletions
+26
-24
App.js
View file @
48c96361
...
...
@@ -209,7 +209,7 @@ class App extends Component<Props, State> {
async
componentDidMount
()
{
try
{
// load app setting before start
const
results
=
await
Promise
.
all
([
settingsStore
.
init
(),
Linking
.
getInitialURL
()
,
ThemedStyles
.
init
()
]);
const
results
=
await
Promise
.
all
([
settingsStore
.
init
(),
Linking
.
getInitialURL
()]);
deepLinkUrl
=
results
[
1
];
...
...
This diff is collapsed.
src/auth/ForgotScreen.js
View file @
48c96361
...
...
@@ -27,7 +27,7 @@ export default class ForgotScreen extends Component {
const
CS
=
ThemedStyles
.
style
;
return
(
<
KeyboardAvoidingView
style
=
{[
CS
.
flexContainer
,
CS
.
background
Theme
Primary
]}
behavior
=
{
Platform
.
OS
==
'
ios
'
?
'
padding
'
:
null
}
>
<
KeyboardAvoidingView
style
=
{[
CS
.
flexContainer
,
CS
.
backgroundPrimary
]}
behavior
=
{
Platform
.
OS
==
'
ios
'
?
'
padding
'
:
null
}
>
<
View
style
=
{[
CS
.
flexContainer
,
CS
.
padding2x
]}
>
{
code
?
<
ResetPassword
onBack
=
{
this
.
onForgotBack
}
...
...
This diff is collapsed.
src/auth/LoginScreen.js
View file @
48c96361
...
...
@@ -83,7 +83,7 @@ export default class LoginScreen extends Component {
const
CS
=
ThemedStyles
.
style
;
return
(
<
KeyboardAvoidingView
style
=
{[
CS
.
flexColumnStretch
,
CS
.
background
Theme
Primary
]}
behavior
=
{
Platform
.
OS
==
'
ios
'
?
'
padding
'
:
null
}
>
<
KeyboardAvoidingView
style
=
{[
CS
.
flexColumnStretch
,
CS
.
backgroundPrimary
]}
behavior
=
{
Platform
.
OS
==
'
ios
'
?
'
padding
'
:
null
}
>
<
SafeAreaView
style
=
{[
styles
.
flex10
]}
>
<
ScrollView
style
=
{
CS
.
flexContainer
}
>
<
View
style
=
{[
CS
.
paddingHorizontal4x
,
CS
.
flexColumnStretch
]}
>
...
...
@@ -99,7 +99,7 @@ export default class LoginScreen extends Component {
<
/View
>
<
/ScrollView
>
<
/SafeAreaView
>
<
View
style
=
{[
CS
.
paddingVertical2x
,
CS
.
background
Theme
Secondary
,
CS
.
mindsLayoutFooter
]}
>
<
View
style
=
{[
CS
.
paddingVertical2x
,
CS
.
backgroundSecondary
,
CS
.
mindsLayoutFooter
]}
>
<
TouchableOpacity
onPress
=
{
this
.
onPressRegister
}
testID
=
"
registerButton
"
>
<
View
style
=
{
CS
.
flexColumnCentered
}
>
<
Text
style
=
{[
CS
.
subTitleText
,
CS
.
colorSecondaryText
]}
>
{
i18nService
.
t
(
'
auth.haveAccount
'
)}
<
/Text
>
...
...
This diff is collapsed.
src/auth/RegisterForm.js
View file @
48c96361
...
...
@@ -164,7 +164,7 @@ class RegisterForm extends Component {
render
()
{
const
CS
=
ThemedStyles
.
style
;
return
(
<
View
style
=
{[
CS
.
flexContainerCenter
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
flexContainerCenter
,
CS
.
backgroundPrimary
]}
>
{
this
.
getFormBody
()}
<
/View
>
);
...
...
This diff is collapsed.
src/onboarding/OnboardingScreenNew.js
View file @
48c96361
...
...
@@ -133,7 +133,7 @@ export default class OnboardingScreenNew extends Component {
}
return
(
<
SafeAreaView
style
=
{[
CS
.
flexContainer
,
CS
.
background
Theme
Primary
]}
>
<
SafeAreaView
style
=
{[
CS
.
flexContainer
,
CS
.
backgroundPrimary
]}
>
<
KeyboardAvoidingView
style
=
{[
CS
.
flexContainer
]}
behavior
=
{
Platform
.
OS
==
'
ios
'
?
'
padding
'
:
null
}
>
<
Wizard
steps
=
{
steps
}
onFinish
=
{
this
.
onFinish
}
ref
=
{
this
.
handleWizarRef
}
><
/Wizard
>
<
/KeyboardAvoidingView
>
...
...
This diff is collapsed.
src/onboarding/steps/AllDoneStep.js
View file @
48c96361
...
...
@@ -21,7 +21,7 @@ export default class AllDoneStep extends Component {
<
View
style
=
{[
CS
.
flexContainerCenter
,
CS
.
background
Theme
Primary
,
CS
.
backgroundPrimary
,
CS
.
centered
,
]}
>
<
Text
style
=
{[
CS
.
onboardingTitle
]}
>
{
i18n
.
t
(
'
boosts.tabNewsfeed
'
)}
<
/Text
>
...
...
This diff is collapsed.
src/onboarding/steps/ChannelSetupStepNew.js
View file @
48c96361
...
...
@@ -45,7 +45,7 @@ export default class ChannelSetupStepNew extends Component {
constructor
(
props
)
{
super
(
props
);
this
.
store
=
this
.
props
.
channel
.
store
(
sessionService
.
guid
);
this
.
store
=
this
.
props
.
channel
.
store
(
sessionService
.
guid
);
}
changeAvatarAction
=
async
()
=>
{
...
...
@@ -84,7 +84,7 @@ export default class ChannelSetupStepNew extends Component {
if
(
this
.
store
.
isUploading
)
throw
new
UserError
(
'
Avatar is uploading, please wait
'
);
const
{
phoneNumber
,
city
,
dob
}
=
this
.
state
;
const
payload
=
{
phoneNumber
,
city
,
...
...
@@ -192,10 +192,10 @@ export default class ChannelSetupStepNew extends Component {
render
()
{
return
(
<
View
style
=
{[
CS
.
flexContainerCenter
]}
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
backgroundPrimary
]}
>
{
this
.
getBody
()}
<
/View
>
{
this
.
state
.
showFooter
&&
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
background
Theme
Primary
]}
>
{
this
.
state
.
showFooter
&&
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
backgroundPrimary
]}
>
{
this
.
getFooter
()}
<
/View>
}
<
/View
>
...
...
This diff is collapsed.
src/onboarding/steps/HashtagsStepNew.js
View file @
48c96361
...
...
@@ -60,10 +60,10 @@ export default class HashtagsStepNew extends Component {
render
()
{
return
(
<
View
style
=
{[
CS
.
flexContainerCenter
]}
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
backgroundPrimary
]}
>
{
this
.
getBody
()}
<
/View
>
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
backgroundPrimary
]}
>
{
this
.
getFooter
()}
<
/View
>
<
/View
>
...
...
This diff is collapsed.
src/onboarding/steps/SuggestedChannelsStepNew.js
View file @
48c96361
...
...
@@ -34,7 +34,7 @@ export default class SuggestedChannelsStepNew extends Component {
* Component did mount
*/
componentDidMount
()
{
}
/**
...
...
@@ -83,10 +83,10 @@ export default class SuggestedChannelsStepNew extends Component {
render
()
{
return
(
<
View
style
=
{[
CS
.
flexContainerCenter
]}
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
backgroundPrimary
]}
>
{
this
.
getBody
()}
<
/View
>
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
backgroundPrimary
]}
>
{
this
.
getFooter
()}
<
/View
>
<
/View
>
...
...
This diff is collapsed.
src/onboarding/steps/SuggestedGroupsStepNew.js
View file @
48c96361
...
...
@@ -25,7 +25,7 @@ export default class SuggestedGroupsStepNew extends Component {
this
.
props
.
discovery
.
init
();
}
componentDidMount
()
{
this
.
props
.
hashtag
.
setAll
(
false
);
this
.
props
.
discovery
.
filters
.
setType
(
'
groups
'
);
...
...
@@ -68,10 +68,10 @@ export default class SuggestedGroupsStepNew extends Component {
render
()
{
return
(
<
View
style
=
{[
CS
.
flexContainerCenter
]}
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
backgroundPrimary
]}
>
{
this
.
getBody
()}
<
/View
>
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
backgroundPrimary
]}
>
{
this
.
getFooter
()}
<
/View
>
<
/View
>
...
...
This diff is collapsed.
src/onboarding/steps/WelcomeStepNew.js
View file @
48c96361
...
...
@@ -67,10 +67,10 @@ export default class WelcomeStep extends Component {
render
()
{
return
(
<
View
style
=
{[
CS
.
flexContainerCenter
]}
testID
=
"
artTestID
"
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
mindsLayoutBody
,
CS
.
backgroundPrimary
]}
>
{
this
.
getBody
()}
<
/View
>
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
background
Theme
Primary
]}
>
<
View
style
=
{[
CS
.
mindsLayoutFooter
,
CS
.
backgroundPrimary
]}
>
{
this
.
getFooter
()}
<
/View
>
<
/View
>
...
...
This diff is collapsed.
src/settings/SettingsScreen.js
View file @
48c96361
...
...
@@ -207,7 +207,7 @@ class SettingsScreen extends Component {
}
return
(
<
ScrollView
style
=
{[
styles
.
scrollView
,
CS
.
background
Theme
Primary
]}
>
<
ScrollView
style
=
{[
styles
.
scrollView
,
CS
.
backgroundPrimary
]}
>
<
ModalPicker
onSelect
=
{
this
.
languageSelected
}
onCancel
=
{
this
.
cancel
}
...
...
This diff is collapsed.
src/settings/SettingsStore.js
View file @
48c96361
...
...
@@ -38,6 +38,7 @@ class SettingsStore {
if
(
!
data
)
{
ThemedStyles
.
theme
=
0
;
ThemedStyles
.
init
();
return
;
}
this
.
leftHanded
=
data
[
0
][
1
];
...
...
@@ -51,6 +52,7 @@ class SettingsStore {
// theme
ThemedStyles
.
theme
=
data
[
5
][
1
]
||
0
;
ThemedStyles
.
init
();
return
this
;
}
...
...
This diff is collapsed.
src/styles/ThemedStyles.js
View file @
48c96361
...
...
@@ -159,10 +159,10 @@ class ThemedStylesStore {
backgroundBlack
:
{
backgroundColor
:
'
black
'
},
background
Theme
Primary
:
{
backgroundPrimary
:
{
backgroundColor
:
theme
.
primary_background
,
},
background
Theme
Secondary
:
{
backgroundSecondary
:
{
backgroundColor
:
theme
.
secondary_background
,
},
// fonts
...
...
This diff is collapsed.
Please
register
or
sign in
to comment