Adjust launcher default size and scale
This commit is contained in:
@@ -2465,7 +2465,7 @@ input:checked + .toggleSwitchSlider:before {
|
|||||||
position: relative;
|
position: relative;
|
||||||
transition: top 2s ease;
|
transition: top 2s ease;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
height: 77%;
|
height: 82%;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
#landingContainer > #upper > #left {
|
#landingContainer > #upper > #left {
|
||||||
@@ -2488,7 +2488,7 @@ input:checked + .toggleSwitchSlider:before {
|
|||||||
|
|
||||||
/* Lower content container. */
|
/* Lower content container. */
|
||||||
#landingContainer > #lower {
|
#landingContainer > #lower {
|
||||||
height: 23%;
|
height: 18%;
|
||||||
display: flex;
|
display: flex;
|
||||||
background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
|
||||||
}
|
}
|
||||||
@@ -2503,7 +2503,7 @@ input:checked + .toggleSwitchSlider:before {
|
|||||||
}
|
}
|
||||||
#landingContainer > #lower > #left #content {
|
#landingContainer > #lower > #left #content {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 25px;
|
top: 12px;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
line-height: 28px;
|
line-height: 28px;
|
||||||
left: 50px;
|
left: 50px;
|
||||||
@@ -2521,7 +2521,7 @@ input:checked + .toggleSwitchSlider:before {
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 500;
|
z-index: 500;
|
||||||
transition: top 2s ease;
|
transition: top 2s ease;
|
||||||
top: 10px;
|
top: 5px;
|
||||||
}
|
}
|
||||||
#landingContainer > #lower > #right {
|
#landingContainer > #lower > #right {
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -3474,7 +3474,7 @@ input:checked + .toggleSwitchSlider:before {
|
|||||||
/* Main launch content container. */
|
/* Main launch content container. */
|
||||||
#landingContainer > #lower > #right #launch_content {
|
#landingContainer > #lower > #right #launch_content {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 25px;
|
top: 12px;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3509,7 +3509,7 @@ input:checked + .toggleSwitchSlider:before {
|
|||||||
/* Launch details main container, hidden until launch processing begins. */
|
/* Launch details main container, hidden until launch processing begins. */
|
||||||
#launch_details {
|
#launch_details {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 25px;
|
top: 12px;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ webFrame.setVisualZoomLevelLimits(1, 1)
|
|||||||
|
|
||||||
const BASE_WINDOW_WIDTH = 1400
|
const BASE_WINDOW_WIDTH = 1400
|
||||||
const BASE_WINDOW_HEIGHT = 860
|
const BASE_WINDOW_HEIGHT = 860
|
||||||
const UI_SCALE_MULTIPLIER = 1.12
|
const UI_SCALE_MULTIPLIER = 1.5
|
||||||
|
|
||||||
let responsiveLayoutFrame = null
|
let responsiveLayoutFrame = null
|
||||||
let lastAppliedZoomFactor = null
|
let lastAppliedZoomFactor = null
|
||||||
@@ -77,7 +77,7 @@ function applyResponsiveLayout(){
|
|||||||
const scale = clamp(
|
const scale = clamp(
|
||||||
Math.min(contentBounds.width / BASE_WINDOW_WIDTH, contentBounds.height / BASE_WINDOW_HEIGHT) * UI_SCALE_MULTIPLIER,
|
Math.min(contentBounds.width / BASE_WINDOW_WIDTH, contentBounds.height / BASE_WINDOW_HEIGHT) * UI_SCALE_MULTIPLIER,
|
||||||
0.72,
|
0.72,
|
||||||
1.45
|
2
|
||||||
)
|
)
|
||||||
|
|
||||||
if(lastAppliedZoomFactor == null || Math.abs(lastAppliedZoomFactor - scale) > 0.001){
|
if(lastAppliedZoomFactor == null || Math.abs(lastAppliedZoomFactor - scale) > 0.001){
|
||||||
|
|||||||
@@ -227,10 +227,10 @@ let win
|
|||||||
function createWindow() {
|
function createWindow() {
|
||||||
|
|
||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
width: 1400,
|
width: 1120,
|
||||||
height: 860,
|
height: 700,
|
||||||
minWidth: 1120,
|
minWidth: 960,
|
||||||
minHeight: 700,
|
minHeight: 600,
|
||||||
icon: getPlatformIcon('Icon'),
|
icon: getPlatformIcon('Icon'),
|
||||||
frame: false,
|
frame: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
|||||||
@@ -228,10 +228,10 @@ let win
|
|||||||
function createWindow() {
|
function createWindow() {
|
||||||
|
|
||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
width: 1400,
|
width: 1120,
|
||||||
height: 860,
|
height: 700,
|
||||||
minWidth: 1120,
|
minWidth: 960,
|
||||||
minHeight: 700,
|
minHeight: 600,
|
||||||
icon: getPlatformIcon('Icon'),
|
icon: getPlatformIcon('Icon'),
|
||||||
frame: false,
|
frame: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
|
|||||||
Reference in New Issue
Block a user