Skip to content

Commit

Permalink
Add frame to OAuth window
Browse files Browse the repository at this point in the history
Apple App Store review mentioned people cannot quit the app if they are
on the OAuth window. So now we've added a close button.
  • Loading branch information
marckohlbrugge committed Oct 27, 2020
1 parent 04f1b1e commit c07d7d8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ app.on('ready', () => {
backgroundColor: '#000000',
title: `${pjson.name} - OAuth`,
width: 400,
height: 240,
frame: false,
height: 260,
frame: true,
resizable: false,
maximizable: false,
minimizable: false,
Expand Down
1 change: 1 addition & 0 deletions src/oauth/key.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions src/oauth/oauth.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,22 @@ code {
background-color: #444;
color: white;
}

i.fas.fa-key {
font-size: 1em;
line-height: 1em;
vertical-align: -0.1em;
height: 1em;
width: 1em;
display: block;
background-size: contain;
color: lightgreen;
-webkit-mask-position: center center;
-webkit-mask-repeat: no-repeat;
-webkit-mask-image: url(./key.svg);
background: #ccc;
}

input, input:active, input:focus {
border-width: 0 !important;
}
3 changes: 2 additions & 1 deletion src/oauth/oauth.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>WIP</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../../node_modules/bulma/css/bulma.min.css" />
Expand All @@ -24,7 +25,7 @@ <h1>🚧 WIP Menubar</h1>
id="authorization-code"
type="text"
class="input"
placeholder="authorization code"
placeholder="Enter authorization code"
/>
<span class="icon is-left"> <i class="fas fa-key"></i> </span>
<span class="icon is-right">
Expand Down

0 comments on commit c07d7d8

Please sign in to comment.