mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Add color properties to config to white label login buttons (#7826)
This commit is contained in:
committed by
Christopher Speller
parent
df09f87def
commit
15cc449758
@@ -688,6 +688,9 @@ type EmailSettings struct {
|
||||
EmailBatchingInterval *int
|
||||
SkipServerCertificateVerification *bool
|
||||
EmailNotificationContentsType *string
|
||||
LoginButtonColor *string
|
||||
LoginButtonBorderColor *string
|
||||
LoginButtonTextColor *string
|
||||
}
|
||||
|
||||
func (s *EmailSettings) SetDefaults() {
|
||||
@@ -755,6 +758,18 @@ func (s *EmailSettings) SetDefaults() {
|
||||
if s.EmailNotificationContentsType == nil {
|
||||
s.EmailNotificationContentsType = NewString(EMAIL_NOTIFICATION_CONTENTS_FULL)
|
||||
}
|
||||
|
||||
if s.LoginButtonColor == nil {
|
||||
s.LoginButtonColor = NewString("#0000")
|
||||
}
|
||||
|
||||
if s.LoginButtonBorderColor == nil {
|
||||
s.LoginButtonBorderColor = NewString("#2389D7")
|
||||
}
|
||||
|
||||
if s.LoginButtonTextColor == nil {
|
||||
s.LoginButtonTextColor = NewString("#2389D7")
|
||||
}
|
||||
}
|
||||
|
||||
type RateLimitSettings struct {
|
||||
@@ -1069,6 +1084,10 @@ type LdapSettings struct {
|
||||
|
||||
// Customization
|
||||
LoginFieldName *string
|
||||
|
||||
LoginButtonColor *string
|
||||
LoginButtonBorderColor *string
|
||||
LoginButtonTextColor *string
|
||||
}
|
||||
|
||||
func (s *LdapSettings) SetDefaults() {
|
||||
@@ -1156,6 +1175,18 @@ func (s *LdapSettings) SetDefaults() {
|
||||
if s.LoginFieldName == nil {
|
||||
s.LoginFieldName = NewString(LDAP_SETTINGS_DEFAULT_LOGIN_FIELD_NAME)
|
||||
}
|
||||
|
||||
if s.LoginButtonColor == nil {
|
||||
s.LoginButtonColor = NewString("#0000")
|
||||
}
|
||||
|
||||
if s.LoginButtonBorderColor == nil {
|
||||
s.LoginButtonBorderColor = NewString("#2389D7")
|
||||
}
|
||||
|
||||
if s.LoginButtonTextColor == nil {
|
||||
s.LoginButtonTextColor = NewString("#2389D7")
|
||||
}
|
||||
}
|
||||
|
||||
type ComplianceSettings struct {
|
||||
@@ -1224,6 +1255,10 @@ type SamlSettings struct {
|
||||
PositionAttribute *string
|
||||
|
||||
LoginButtonText *string
|
||||
|
||||
LoginButtonColor *string
|
||||
LoginButtonBorderColor *string
|
||||
LoginButtonTextColor *string
|
||||
}
|
||||
|
||||
func (s *SamlSettings) SetDefaults() {
|
||||
@@ -1298,6 +1333,18 @@ func (s *SamlSettings) SetDefaults() {
|
||||
if s.LocaleAttribute == nil {
|
||||
s.LocaleAttribute = NewString(SAML_SETTINGS_DEFAULT_LOCALE_ATTRIBUTE)
|
||||
}
|
||||
|
||||
if s.LoginButtonColor == nil {
|
||||
s.LoginButtonColor = NewString("#34a28b")
|
||||
}
|
||||
|
||||
if s.LoginButtonBorderColor == nil {
|
||||
s.LoginButtonBorderColor = NewString("#2389D7")
|
||||
}
|
||||
|
||||
if s.LoginButtonTextColor == nil {
|
||||
s.LoginButtonTextColor = NewString("#ffffff")
|
||||
}
|
||||
}
|
||||
|
||||
type NativeAppSettings struct {
|
||||
|
||||
Reference in New Issue
Block a user