-
When the application is launched, an icon will appear on the taskbar.
-
When the Bluetooth Classic battery information is successfully acquired, the icon will switch to battery reporting.
-
The icon will change according to the battery %.
-
Search Bluetooth(Classic) battery info
-
Autostart at PC startup
-
Localization(could be customized)
-
Custom edit JavaScript & CSS
- Bluetooth LE device search
- Battery information acquisition for Bluetooth LE
-
If you want to change the design:
Settings
page ->Editor/Preset
tab -> ClickPreset1
-
background image randomization(NOTE: Script execution is at your own risk.)
Settings
page ->Editor/Preset
tab -> ClickPreset1
- Click
JS Auto run
button - Copy this code.
//@ts-check
(() => {
const preset1 = `
--autofill-color: #691c3747;
--convert-btn-color: #ab2b7e6e;
--error-color: #ff1655;
--hover-btn-color: #ff89898b;
--hover-convert-btn-color: #fd3b3b6e;
--theme-color: #ff8e16;`;
const preset2 = `
--autofill-color: #5eb1ef24;
--convert-btn-color: #3369ad7d;
--hover-btn-color: #1d5aa58b;
--hover-convert-btn-color: #2665b5d1;
--theme-color: #5a9ab9;`;
const preset4 = `
--autofill-color: #a19c0038;
--convert-btn-color: #94ce7c6e;
--hover-btn-color: #cefb518b;
--hover-convert-btn-color: #81c462a3;
--main-bg-color: #222a;
--theme-color: rgb(185, 185, 90);`;
let preset = /** @type{const} */ preset2;
const getRandomUrl = () => {
const imgNumList = [1543801, 1547163, 4589833, 7325003, 14133639];
const imgNum = imgNumList[Math.floor(Math.random() * imgNumList.length)];
if ([1547163, 14133639].includes(imgNum)) {
preset = preset1;
} else if ([4589833, 7325003].includes(imgNum)) {
preset = preset4;
}
return `https://images.pexels.com/photos/${imgNum}/pexels-photo-${imgNum}.jpeg`;
};
const img = getRandomUrl();
// Change the background on each page.(JS is executed every time, so the same variable is fine.)
dynImg(/** index */ img, /** settings */ img);
/**
* Change the background on each page.
* @param {string} indexUrl - Image URI of index(converter) page
* @param {string} settingsUrl - Image URI of settings page
*/
function dynImg(indexUrl, settingsUrl) {
const commonVariables = `
--image-position-x: center;
--image-position-y: center;
--image-size: cover;
--main-bg-color: #222a;
${preset}
`;
const style = document.getElementById('dyn-style') ?? document.createElement('style');
style.id = 'dyn-style';
const currentPage = window.location.pathname;
if (currentPage === '/') {
style.innerHTML = `:root { ${commonVariables} --image-url: url('${indexUrl}'); }`;
} else if (currentPage === '/settings') {
style.innerHTML = `:root { ${commonVariables} --image-url: url('${settingsUrl}'); }`;
}
document.body.appendChild(style);
}
})();
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)