mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 13:25:30 +03:00
removing custom frame, changes for 35M
This commit is contained in:
parent
1280c7668c
commit
5deb48f6cb
3 changed files with 70 additions and 135 deletions
|
@ -11,11 +11,11 @@
|
|||
function start_app() {
|
||||
chrome.app.window.create('main.html', {
|
||||
id: 'main-window',
|
||||
frame: 'none',
|
||||
frame: 'chrome',
|
||||
resizable: false
|
||||
}, function(createdWindow) {
|
||||
// set window size
|
||||
createdWindow.setBounds({'width': 962, 'height': 650});
|
||||
createdWindow.setBounds({'width': 960, 'height': 625});
|
||||
|
||||
// bind events
|
||||
createdWindow.onMaximized.addListener(function() {
|
||||
|
|
67
main.css
67
main.css
|
@ -41,65 +41,7 @@ input[type="number"]::-webkit-inner-spin-button {
|
|||
.right {
|
||||
float: right;
|
||||
}
|
||||
#outter-wrapper {
|
||||
border: 1px solid silver;
|
||||
}
|
||||
#frame {
|
||||
height: 25px;
|
||||
line-height: 25px;
|
||||
|
||||
-webkit-app-region: drag;
|
||||
|
||||
background-color: white;
|
||||
}
|
||||
#frame .title {
|
||||
float: left;
|
||||
|
||||
margin-left: 15px;
|
||||
|
||||
font-weight: bold;
|
||||
/* text-shadow: 1px 1px #e4e4e4; */
|
||||
}
|
||||
#frame .minimize {
|
||||
float: right;
|
||||
display: block;
|
||||
|
||||
width: 26px;
|
||||
height: 20px;
|
||||
|
||||
background: url('../images/controls/minimize.png') no-repeat 0 0;
|
||||
}
|
||||
#frame .maximize {
|
||||
float: right;
|
||||
display: block;
|
||||
|
||||
width: 27px;
|
||||
height: 20px;
|
||||
|
||||
background: url('../images/controls/maximize.png') no-repeat 0 0;
|
||||
}
|
||||
#frame .close {
|
||||
float: right;
|
||||
display: block;
|
||||
|
||||
width: 45px;
|
||||
height: 20px;
|
||||
|
||||
background: url('../images/controls/close.png') no-repeat 0 0;
|
||||
}
|
||||
#frame a {
|
||||
cursor: default;
|
||||
-webkit-app-region: no-drag;
|
||||
}
|
||||
#frame a:hover {
|
||||
/* hover is disabled untill webkit-app-region: drag; starts to fire events or chromium implements native frame */
|
||||
/* background-position: 0px -20px; */
|
||||
}
|
||||
#frame a:active {
|
||||
background-position: 0px -40px;
|
||||
}
|
||||
#main-wrapper {
|
||||
width: 940px;
|
||||
margin: 10px auto 0 auto;
|
||||
|
||||
padding: 0 10px 0 10px;
|
||||
|
@ -256,7 +198,7 @@ input[type="number"]::-webkit-inner-spin-button {
|
|||
padding: 10px;
|
||||
|
||||
background-color: white;
|
||||
height: 429px;
|
||||
height: 431px;
|
||||
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
|
@ -266,10 +208,11 @@ input[type="number"]::-webkit-inner-spin-button {
|
|||
-webkit-transform: rotateX(0deg); /* DO NOT REMOVE! this fixes the UI freezing bug on MAC OS X */
|
||||
}
|
||||
#status-bar {
|
||||
margin-left: -10px;
|
||||
margin-top: 10px;
|
||||
position: fixed;
|
||||
|
||||
width: 940px;
|
||||
bottom: 0px;
|
||||
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
|
||||
|
|
10
main.html
10
main.html
|
@ -47,13 +47,6 @@
|
|||
<script type="text/javascript" src="./tabs/firmware_flasher.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="outter-wrapper">
|
||||
<div id="frame">
|
||||
<span class="title">Baseflight - Configurator</span>
|
||||
<a class="close" href="#" title="Close"></a>
|
||||
<a class="maximize" href="#"></a>
|
||||
<a class="minimize" href="#" title="Minimize"></a>
|
||||
</div>
|
||||
<div id="main-wrapper">
|
||||
<div id="port-picker">
|
||||
<ul>
|
||||
|
@ -116,12 +109,11 @@
|
|||
</div>
|
||||
<div id="content">
|
||||
</div>
|
||||
</div>
|
||||
<div id="status-bar">
|
||||
<span i18n="statusbar_port_utilization"></span> <span class="port_usage_down">D: 0%</span> <span class="port_usage_up">U: 0%</span> |
|
||||
<span i18n="statusbar_packet_error"></span> <span class="packet-error">0</span> |
|
||||
<span i18n="statusbar_cycle_time"></span> <span class="cycle-time">0</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue