mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-07 22:47:29 +00:00
fix(windows): add icon and flex layout for warning
This commit is contained in:
parent
12f4bcee0a
commit
edd6bcd8dc
2 changed files with 28 additions and 13 deletions
|
|
@ -738,17 +738,29 @@ table tr
|
|||
}
|
||||
.options_startup_warning
|
||||
{
|
||||
background: #FFF4CE;
|
||||
border: 1px solid #D6B656;
|
||||
color: #4A3B00;
|
||||
background: #FFFFFF;
|
||||
border: 2px solid #CC3846;
|
||||
color: #000000;
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
margin: 4px 8px 8px 32px;
|
||||
padding: 8px;
|
||||
}
|
||||
.options_startup_warning input,
|
||||
.options_startup_warning button
|
||||
.options_startup_warning_icon
|
||||
{
|
||||
margin-left: 0;
|
||||
margin-top: 6px;
|
||||
flex: 0 0 auto;
|
||||
height: 32px;
|
||||
margin: 8px 8px 0 0;
|
||||
width: 32px;
|
||||
}
|
||||
.options_startup_warning_content
|
||||
{
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
#options .options_startup_warning input,
|
||||
#options .options_startup_warning button
|
||||
{
|
||||
margin: 6px 0 0;
|
||||
}
|
||||
#options_control
|
||||
{
|
||||
|
|
|
|||
|
|
@ -18,12 +18,15 @@
|
|||
<xsl:call-template name="option" />
|
||||
<xsl:if test="id='koStartWithWindows' and value='True' and //StartupDisabled='True'">
|
||||
<div class="options_startup_warning">
|
||||
<div><xsl:value-of select="$locale/string[@name='S_StartupDisabledWarning']"/></div>
|
||||
<xsl:call-template name="button">
|
||||
<xsl:with-param name="caption"><xsl:value-of select="$locale/string[@name='S_Button_StartupSettings']"/></xsl:with-param>
|
||||
<xsl:with-param name="command">keyman:options_startupsettings</xsl:with-param>
|
||||
<xsl:with-param name="tabid">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<img class="options_startup_warning_icon" src="/app/caution-icon.png" alt="" />
|
||||
<div class="options_startup_warning_content">
|
||||
<div><xsl:value-of select="$locale/string[@name='S_StartupDisabledWarning']"/></div>
|
||||
<xsl:call-template name="button">
|
||||
<xsl:with-param name="caption"><xsl:value-of select="$locale/string[@name='S_Button_StartupSettings']"/></xsl:with-param>
|
||||
<xsl:with-param name="command">keyman:options_startupsettings</xsl:with-param>
|
||||
<xsl:with-param name="tabid">1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</div>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue