mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
Add method icon(name, color)
This commit is contained in:
@ -64,14 +64,24 @@ public class NoCodeWidgetVelocityUtils
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
**
|
||||||
|
*******************************************************************************/
|
||||||
|
public String icon(String iconName, String color)
|
||||||
|
{
|
||||||
|
return String.format("""
|
||||||
|
<span class="material-icons-round notranslate MuiIcon-root MuiIcon-fontSizeInherit" style="color: %s; position: relative; top: 6px;" aria-hidden="true">%s</span>
|
||||||
|
""", color, iconName);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
**
|
**
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public String helpIcon()
|
public String helpIcon()
|
||||||
{
|
{
|
||||||
return ("""
|
return (icon("help_outline", "blue"));
|
||||||
<span class="material-icons-round notranslate MuiIcon-root MuiIcon-fontSizeInherit" style="color: blue; position: relative; top: 6px;" aria-hidden="true">help_outline</span>
|
|
||||||
""");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -81,9 +91,7 @@ public class NoCodeWidgetVelocityUtils
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public String errorIcon()
|
public String errorIcon()
|
||||||
{
|
{
|
||||||
return ("""
|
return (icon("error_outline", "red"));
|
||||||
<span class="material-icons-round notranslate MuiIcon-root MuiIcon-fontSizeInherit" style="color: red; position: relative; top: 6px;" aria-hidden="true">error_outline</span>
|
|
||||||
""");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -93,9 +101,7 @@ public class NoCodeWidgetVelocityUtils
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public String warningIcon()
|
public String warningIcon()
|
||||||
{
|
{
|
||||||
return ("""
|
return (icon("warning", "orange"));
|
||||||
<span class="material-icons-round notranslate MuiIcon-root MuiIcon-fontSizeInherit" style="color: orange; position: relative; top: 6px;" aria-hidden="true">warning</span>
|
|
||||||
""");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -105,9 +111,7 @@ public class NoCodeWidgetVelocityUtils
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public String checkIcon()
|
public String checkIcon()
|
||||||
{
|
{
|
||||||
return ("""
|
return (icon("check", "green"));
|
||||||
<span class="material-icons-round notranslate MuiIcon-root MuiIcon-fontSizeInherit" style="color: green; position: relative; top: 6px;" aria-hidden="true">check</span>
|
|
||||||
""");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -117,9 +121,7 @@ public class NoCodeWidgetVelocityUtils
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
public String pendingIcon()
|
public String pendingIcon()
|
||||||
{
|
{
|
||||||
return ("""
|
return (icon("pending", "#0062ff"));
|
||||||
<span class="material-icons-round notranslate MuiIcon-root MuiIcon-fontSizeInherit" style="color: #0062ff; position: relative; top: 6px;" aria-hidden="true">pending</span>
|
|
||||||
""");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user