Skip to content

Commit

Permalink
domain sync
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdan committed May 29, 2024
1 parent a88912d commit 9c40409
Show file tree
Hide file tree
Showing 4 changed files with 134 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
/*
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*/


using System.Collections.Generic;
using System;

namespace io.fusionauth.domain
{

/**
* Theme object for values used in the css variables for simple themes.
*
* @author Lyle Schemmerling
*/
public class SimpleThemeVariables {

public string alertBackgroundColor;

public string alertFontColor;

public string backgroundImageUrl;

public string backgroundSize;

public string borderRadius;

public string deleteButtonColor;

public string deleteButtonFocusColor;

public string deleteButtonTextColor;

public string deleteButtonTextFocusColor;

public string errorFontColor;

public string errorIconColor;

public string fontColor;

public string fontFamily;

public bool? footerDisplay;

public string iconBackgroundColor;

public string iconColor;

public string infoIconColor;

public string inputBackgroundColor;

public string inputIconColor;

public string inputTextColor;

public string linkTextColor;

public string linkTextFocusColor;

public string logoImageSize;

public string logoImageUrl;

public string monoFontColor;

public string monoFontFamily;

public string pageBackgroundColor;

public string panelBackgroundColor;

public string primaryButtonColor;

public string primaryButtonFocusColor;

public string primaryButtonTextColor;

public string primaryButtonTextFocusColor;

public SimpleThemeVariables with(Action<SimpleThemeVariables> action) {
action(this);
return this;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public class Theme {

public Templates templates;

public ThemeType type;

public SimpleThemeVariables variables;

public Theme with(Action<Theme> action) {
action(this);
return this;
Expand Down
28 changes: 28 additions & 0 deletions fusionauth-netcore-client/domain/io/fusionauth/domain/ThemeType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* Copyright (c) 2018-2023, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the License.
*/


using System.Collections.Generic;
using System;

namespace io.fusionauth.domain
{

public enum ThemeType {
advanced,
simple
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class ThemeSearchCriteria: BaseSearchCriteria {

public string name;

public ThemeType type;

public ThemeSearchCriteria with(Action<ThemeSearchCriteria> action) {
action(this);
return this;
Expand Down

0 comments on commit 9c40409

Please sign in to comment.