(ctx context.Context, api *auth0.API)
| 822 | } |
| 823 | |
| 824 | func fetchBrandingThemeOrUseDefault(ctx context.Context, api *auth0.API) *management.BrandingTheme { |
| 825 | currentTheme, err := api.BrandingTheme.Default(ctx) |
| 826 | if err == nil { |
| 827 | currentTheme.ID = nil |
| 828 | return currentTheme |
| 829 | } |
| 830 | |
| 831 | return &management.BrandingTheme{ |
| 832 | Borders: management.BrandingThemeBorders{ |
| 833 | ButtonBorderRadius: 3, |
| 834 | ButtonBorderWeight: 1, |
| 835 | ButtonsStyle: "rounded", |
| 836 | InputBorderRadius: 3, |
| 837 | InputBorderWeight: 1, |
| 838 | InputsStyle: "rounded", |
| 839 | ShowWidgetShadow: true, |
| 840 | WidgetBorderWeight: 0, |
| 841 | WidgetCornerRadius: 5, |
| 842 | }, |
| 843 | Colors: management.BrandingThemeColors{ |
| 844 | BaseFocusColor: auth0.String("#635dff"), |
| 845 | BaseHoverColor: auth0.String("#000000"), |
| 846 | BodyText: "#1e212a", |
| 847 | Error: "#d03c38", |
| 848 | Header: "#1e212a", |
| 849 | Icons: "#65676e", |
| 850 | InputBackground: "#ffffff", |
| 851 | InputBorder: "#c9cace", |
| 852 | InputFilledText: "#000000", |
| 853 | InputLabelsPlaceholders: "#65676e", |
| 854 | LinksFocusedComponents: "#635dff", |
| 855 | PrimaryButton: "#635dff", |
| 856 | PrimaryButtonLabel: "#ffffff", |
| 857 | SecondaryButtonBorder: "#c9cace", |
| 858 | SecondaryButtonLabel: "#1e212a", |
| 859 | Success: "#13a688", |
| 860 | WidgetBackground: "#ffffff", |
| 861 | WidgetBorder: "#c9cace", |
| 862 | CaptchaWidgetTheme: "auto", |
| 863 | }, |
| 864 | Fonts: management.BrandingThemeFonts{ |
| 865 | BodyText: management.BrandingThemeText{ |
| 866 | Bold: false, |
| 867 | Size: 87.5, |
| 868 | }, |
| 869 | ButtonsText: management.BrandingThemeText{ |
| 870 | Bold: false, |
| 871 | Size: 100.0, |
| 872 | }, |
| 873 | FontURL: "", |
| 874 | InputLabels: management.BrandingThemeText{ |
| 875 | Bold: false, |
| 876 | Size: 100.0, |
| 877 | }, |
| 878 | Links: management.BrandingThemeText{ |
| 879 | Bold: true, |
| 880 | Size: 87.5, |
| 881 | }, |
no test coverage detected