This repository was archived by the owner on Apr 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
114 lines (99 loc) · 2.85 KB
/
index.html
File metadata and controls
114 lines (99 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Gemini</title>
<style>
body,
html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
background: rgba(25, 25, 25, 0.95);
border-radius: 12px;
}
.drag-region {
height: 24px;
display: flex;
align-items: center;
justify-content: center;
-webkit-app-region: drag;
user-select: none;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
transition: background 0.2s ease;
position: relative;
}
.drag-region:hover {
background: rgba(255, 255, 255, 0.05);
}
.drag-handle {
width: 40px;
height: 4px;
border-radius: 2px;
background: rgba(255, 255, 255, 0.1);
transition: background 0.2s ease;
}
.drag-region:hover .drag-handle {
background: rgba(255, 255, 255, 0.25);
}
.controls {
position: absolute;
right: 15px;
display: flex;
align-items: center;
-webkit-app-region: no-drag;
opacity: 0.3;
transition: opacity 0.2s ease;
}
.drag-region:hover .controls {
opacity: 1;
}
/* Custom sleek slider */
input[type=range] {
-webkit-appearance: none;
width: 80px;
background: rgba(255, 255, 255, 0.1);
height: 4px;
border-radius: 2px;
outline: none;
cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 10px;
height: 10px;
border-radius: 50%;
background: #e0e0e0;
cursor: pointer;
transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover {
transform: scale(1.3);
}
#webview-container {
height: calc(100% - 24px);
background: transparent;
}
</style>
</head>
<body>
<div class="drag-region">
<div class="drag-handle"></div>
<div class="controls">
<input type="range" id="opacitySlider" min="0.2" max="1.0" step="0.05" value="1.0"
title="Adjust Transparency">
</div>
</div>
<div id="webview-container"></div>
<script>
const { ipcRenderer } = require('electron');
const slider = document.getElementById('opacitySlider');
slider.addEventListener('input', (event) => {
ipcRenderer.send('set-opacity', parseFloat(event.target.value));
});
</script>
</body>
</html>