Files
tubestation/toolkit/mozapps/handling/content/permissionDialog.xhtml
Gijs Kruitbosch a1d3c89512 Bug 1706259 - fix styling in the protocol handler dialogs to be more like the design, r=mconley
This starts using the same spacing as commonDialog for these dialogs
with proton enabled. It also updates the checkbox spacing, alignment
and colour (bug 1705882 will fix the correct colour choice here.)

The spacing is still not ideal in the second dialog (after you click
'Choose Application') but there isn't much we can do about that unless
we get rid of the confirmation text about where to change the preference,
or we start creating ways for the dialog to tell SubDialog to resize
it when items are added/removed, which is not straightforward, so I
decided not to tackle that here.

Differential Revision: https://phabricator.services.mozilla.com/D112788
2021-04-21 16:33:56 +00:00

44 lines
1.5 KiB
HTML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/global.css"?>
<?xml-stylesheet href="chrome://mozapps/content/handling/handler.css"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE window>
<window aria-describedby="description"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<dialog buttons="accept,cancel"
defaultButton="none"
data-l10n-attrs="buttonlabelaccept, buttonaccesskeyaccept">
<linkset>
<html:link rel="localization" href="toolkit/global/handlerDialog.ftl"/>
</linkset>
<script src="chrome://mozapps/content/handling/permissionDialog.js"
type="application/javascript"/>
<vbox id="description-box">
<description id="description"></description>
<label id="change-app"
hidden="true"
is="text-link"
data-l10n-id="permission-dialog-set-change-app-link"></label>
<description id="description-extra"
hidden="true"
data-l10n-id="permission-dialog-unset-description">
</description>
</vbox>
<vbox id="rememberContainer">
<html:label class="toggle-container-with-text">
<html:input type="checkbox" id="remember"/>
<html:span id="remember-label"/>
</html:label>
</vbox>
</dialog>
</window>