├── screenshot.png ├── largetype.js ├── package.json ├── LICENSE ├── README.md └── assets └── index.html /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/progrium/electron-largetype/master/screenshot.png -------------------------------------------------------------------------------- /largetype.js: -------------------------------------------------------------------------------- 1 | const BrowserWindow = require('electron').BrowserWindow; 2 | 3 | module.exports = { 4 | show: function(text) { 5 | var win = new BrowserWindow({ 6 | transparent: true, 7 | alwaysOnTop: true, 8 | frame: false 9 | }); 10 | win.maximize() 11 | win.loadURL('file://' + __dirname + '/assets/index.html#'+text); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "electron-largetype", 3 | "version": "0.3.0", 4 | "description": "Large Type functionality for Electron apps", 5 | "main": "./largetype.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/progrium/electron-largetype" 9 | }, 10 | "keywords": [ 11 | "atom", 12 | "atom-shell", 13 | "electron", 14 | "gui", 15 | "electron-component" 16 | ], 17 | "author": "Jeff Lindsay", 18 | "license": "MIT", 19 | "bugs": { 20 | "url": "https://github.com/progrium/electron-largetype/issues" 21 | }, 22 | "homepage": "https://github.com/progrium/electron-largetype" 23 | } 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Jeff Lindsay 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # electron-largetype 2 | 3 | Large Type for Electron apps 4 | 5 |  6 | 7 | ## Getting the library 8 | 9 | $ npm install electron-largetype 10 | 11 | ## Using it 12 | 13 | Somewhere in your Electron app you can do this: 14 | ```javascript 15 | var largetype = require("electron-largetype") 16 | 17 | largetype.show("This text is large!") 18 | ``` 19 | 20 | Easy as that. 21 | 22 | ## About Large Type 23 | 24 | Originally built-in to certain OS X apps, "Show Text in Large Type" was popularized by Quicksilver as a way to quickly display text in easy to read large letters on your screen, typically to be read at a distance. Although it was picked up by Quicksilver alternatives like Alfred, as Spotlight became faster and more useful, there was less of a need to run fancy app launchers. As such, we lost easy Large Type. 25 | 26 | In building DeskBot, an API to your desktop, I figured Large Type would be a great feature to include. Being an Electron app, it would just be a matter of loading a transparent browser window and implementing Large Type in HTML/CSS. I decided to make it a library so others could include Large Type in their Electron apps as well. 27 | 28 | ## License 29 | 30 | MIT 31 | -------------------------------------------------------------------------------- /assets/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 21 | 42 | 43 | 44 | 73 | 74 | 75 | --------------------------------------------------------------------------------