electron-findbar 0.6.4 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +6 -14
- package/index.js +3 -2
- package/package.json +2 -3
- package/test/sample.js +1 -1
- package/test/test.js +0 -0
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -8,18 +8,10 @@
|
|
|
8
8
|
Chrome-like findbar for your Electron application
|
|
9
9
|
</p>
|
|
10
10
|
<p align='center'>
|
|
11
|
-
<a href="https://github.com/ECRomaneli/electron-findbar/tags" style=
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<a href="https://github.com/ECRomaneli/electron-findbar/
|
|
15
|
-
<img src="https://img.shields.io/github/last-commit/ecromaneli/electron-findbar?style=for-the-badge" alt="Last Commit">
|
|
16
|
-
</a>
|
|
17
|
-
<a href="https://github.com/ECRomaneli/electron-findbar/blob/master/LICENSE" style='text-decoration:none'>
|
|
18
|
-
<img src="https://img.shields.io/github/license/ecromaneli/electron-findbar?style=for-the-badge" alt="License">
|
|
19
|
-
</a>
|
|
20
|
-
<a href="https://github.com/ECRomaneli/electron-findbar/issues" style='text-decoration:none'>
|
|
21
|
-
<img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=for-the-badge" alt="Contributions Welcome">
|
|
22
|
-
</a>
|
|
11
|
+
<a href="https://github.com/ECRomaneli/electron-findbar/tags"><img src="https://img.shields.io/github/v/tag/ecromaneli/electron-findbar?label=version&sort=semver&style=for-the-badge" alt="Version"></a>
|
|
12
|
+
<a href="https://github.com/ECRomaneli/electron-findbar/commits/master"><img src="https://img.shields.io/github/last-commit/ecromaneli/electron-findbar?style=for-the-badge" alt="Last Commit"></a>
|
|
13
|
+
<a href="https://github.com/ECRomaneli/electron-findbar/blob/master/LICENSE"><img src="https://img.shields.io/github/license/ecromaneli/electron-findbar?style=for-the-badge" alt="License"></a>
|
|
14
|
+
<a href="https://github.com/ECRomaneli/electron-findbar/issues"><img src="https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=for-the-badge" alt="Contributions Welcome"></a>
|
|
23
15
|
</p>
|
|
24
16
|
|
|
25
17
|
## Installation
|
|
@@ -47,7 +39,7 @@ All public methods are documented with JSDoc and can be referenced during import
|
|
|
47
39
|
To import the Findbar class:
|
|
48
40
|
|
|
49
41
|
```js
|
|
50
|
-
const
|
|
42
|
+
const Findbar = require('electron-findbar')
|
|
51
43
|
```
|
|
52
44
|
|
|
53
45
|
### Creating the Findbar Instance
|
|
@@ -145,7 +137,7 @@ Here is a quick example demonstrating how to use the `electron-findbar`:
|
|
|
145
137
|
|
|
146
138
|
```js
|
|
147
139
|
const { app, BrowserWindow } = require('electron')
|
|
148
|
-
const
|
|
140
|
+
const Findbar = require('electron-findbar')
|
|
149
141
|
|
|
150
142
|
app.whenReady().then(() => {
|
|
151
143
|
const window = new BrowserWindow()
|
package/index.js
CHANGED
|
@@ -260,7 +260,8 @@ class Findbar {
|
|
|
260
260
|
options.acceptFirstMouse = options.acceptFirstMouse ?? true
|
|
261
261
|
options.parent = parent
|
|
262
262
|
options.frame = false
|
|
263
|
-
options.
|
|
263
|
+
options.roundedCorners = true
|
|
264
|
+
options.transparent = process.platform === 'linux'
|
|
264
265
|
options.maximizable = false
|
|
265
266
|
options.minimizable = false
|
|
266
267
|
options.skipTaskbar = true
|
|
@@ -288,4 +289,4 @@ class Findbar {
|
|
|
288
289
|
})
|
|
289
290
|
}) (require('electron').ipcMain)
|
|
290
291
|
|
|
291
|
-
module.exports =
|
|
292
|
+
module.exports = Findbar
|
package/package.json
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electron-findbar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Chrome-like findbar for your Electron app.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"sample": "electron test/sample.js"
|
|
8
|
-
"test": "node test/test.js"
|
|
7
|
+
"sample": "electron test/sample.js"
|
|
9
8
|
},
|
|
10
9
|
"repository": {
|
|
11
10
|
"type": "git",
|
package/test/sample.js
CHANGED
package/test/test.js
DELETED
|
File without changes
|