diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-06-22 16:06:58 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2022-06-28 16:32:42 +0300 |
commit | 4f25e4b7dc80ee5c85450f45fdd4b2b817049d92 (patch) | |
tree | 6c41c8bbe668b95c19e4ae01efef3ff4d6459595 /src/resources | |
parent | 2e6885fcdf32641f2409e5e99fe076143eccf776 (diff) |
Oauth: Display a branded html page instead of a white sheet with text
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/client.qrc | 3 | ||||
-rw-r--r-- | src/resources/oauth/oauth.html.in | 43 |
2 files changed, 44 insertions, 2 deletions
diff --git a/src/resources/client.qrc b/src/resources/client.qrc index 6b7b85deb..a3d8f10b3 100644 --- a/src/resources/client.qrc +++ b/src/resources/client.qrc @@ -16,7 +16,6 @@ <file alias="resources/light/check.svg">font-awesome/dark/check-solid.svg</file> <file alias="resources/light/step-forward.svg">font-awesome/dark/step-forward-solid.svg</file> <file alias="resources/light/clipboard.svg">font-awesome/dark/clipboard-solid.svg</file> - <file alias="resources/dark/folder-sync.svg">font-awesome/dark/folder-solid.svg</file> <file alias="resources/dark/settings.svg">font-awesome/dark/cog-solid.svg</file> <file alias="resources/dark/activity.svg">font-awesome/dark/bolt-solid.svg</file> @@ -33,7 +32,7 @@ <file alias="resources/dark/check.svg">font-awesome/dark/check-solid.svg</file> <file alias="resources/dark/step-forward.svg">font-awesome/dark/step-forward-solid.svg</file> <file alias="resources/dark/clipboard.svg">font-awesome/dark/clipboard-solid.svg</file> - <file alias="resources/wizard/style.qss">wizard/style.qss</file> + <file alias="resources/oauth/oauth.html.in">oauth/oauth.html.in</file> </qresource> </RCC> diff --git a/src/resources/oauth/oauth.html.in b/src/resources/oauth/oauth.html.in new file mode 100644 index 000000000..0c365d969 --- /dev/null +++ b/src/resources/oauth/oauth.html.in @@ -0,0 +1,43 @@ +<!DOCTYPE html> + +<html lang="en"> + +<head> +<title>@{TITLE}</title> +<style> +html, body { + height: 100%; + width: 100%; + margin: 0; +} + +body { + background-color: @{BACKGROUND_COLOR}; + color: @{FONT_COLOR}; + font-family: "Noto Sans", OpenSans, Verdana, Helvetica, Arial, sans-serif; + display: flex; + flex-direction: column; + align-items: center; +} + +.row { + display: flex; + flex-direction: row; + align-items: center; + height: 100%; +} + +.content { + text-align: center; +} +</style> +</head> + +<body> +<div class="row"> + <div class="content"> + <img src="data:image/png;base64,@{ICON}" /> + @{CONTENT} + </div> +</div> +</body> |