1
0
mirror of https://github.com/S2-/gitlit synced 2025-08-03 21:00:04 +02:00

fix search window

This commit is contained in:
s2
2019-06-06 15:56:42 +02:00
parent c5f9b551ab
commit 1313cff86a
21 changed files with 1297 additions and 0 deletions

26
app/node_modules/electron-find/example/example.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
const { remote, ipcRenderer } = require('electron')
const { FindInPage } = require('../src/index.js')
let findInPage = new FindInPage(remote.getCurrentWebContents(), {
preload: true,
offsetTop: 6,
offsetRight: 10
})
// let findInPage = new FindInPage(remote.getCurrentWebContents(), {
// boxBgColor: '#333',
// boxShadowColor: '#000',
// inputColor: '#aaa',
// inputBgColor: '#222',
// inputFocusColor: '#555',
// textColor: '#aaa',
// textHoverBgColor: '#555',
// caseSelectedColor: '#555',
// offsetTop: 8,
// offsetRight: 12
// })
ipcRenderer.on('on-find', (e, args) => {
findInPage.openFindWindow()
})