Skip to content

Commit

Permalink
Fix: Some errors in frameless window
Browse files Browse the repository at this point in the history
  • Loading branch information
ollm authored Oct 17, 2023
1 parent 9206e38 commit 0afbbdd
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions scripts/title-bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ var visible = true;

function start()
{
if(false)
{


hide();
}

document.querySelector('.title-bar').innerHTML = template.load('title.bar.html');

app.event(window, 'mousedown touchstart', mousedown);
Expand Down Expand Up @@ -149,7 +142,7 @@ function setColors()
win.setBackgroundColor(backgroundColor);

colors = {
//color: backgroundColor,
color: backgroundColor+'00', // Add transparency
symbolColor: symbolColor,
height: 29,
};
Expand All @@ -172,12 +165,10 @@ function _animateSetTitleBarOverlay(win)
let elapsed = Date.now() - animateSetTitleBarOverlayData;

let computedStyle = getComputedStyle(document.querySelector('.title-bar'));

let symbolColor = computedStyle.getPropertyValue('color');
//let backgroundColor = computedStyle.getPropertyValue('background-color');

win.setTitleBarOverlay({
//color: elapsed >= 200 ? colors.color : backgroundColor,
color: colors.color,
symbolColor: elapsed >= 200 ? colors.symbolColor : symbolColor,
height: 29,
});
Expand Down

0 comments on commit 0afbbdd

Please sign in to comment.