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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Emerson Capuchi Romaneli
3
+ Copyright (c) 2025 Emerson Capuchi Romaneli
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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='text-decoration:none'>
12
- <img src="https://img.shields.io/github/v/tag/ecromaneli/electron-findbar?label=version&sort=semver&style=for-the-badge" alt="Version">
13
- </a>
14
- <a href="https://github.com/ECRomaneli/electron-findbar/commits/master" style='text-decoration:none'>
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 { Findbar } = require('electron-findbar')
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 { Findbar } = require('electron-findbar')
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.transparent = true
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 = { Findbar }
292
+ module.exports = Findbar
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "electron-findbar",
3
- "version": "0.6.4",
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
@@ -1,5 +1,5 @@
1
1
  const { BrowserWindow, app, Menu, MenuItem } = require('electron')
2
- const { Findbar } = require('../index')
2
+ const Findbar = require('../index')
3
3
 
4
4
  app.whenReady().then(() => {
5
5
  const window = setupWindow()
package/test/test.js DELETED
File without changes