mirror of
				https://github.com/smartfrigde/armcord.git
				synced 2024-08-14 23:56:58 +00:00 
			
		
		
		
	Rewrite
This commit is contained in:
		
							parent
							
								
									6f03b8452e
								
							
						
					
					
						commit
						2f5e059dc7
					
				
					 6 changed files with 6167 additions and 2 deletions
				
			
		
							
								
								
									
										40
									
								
								index.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								index.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,40 @@ | |||
| <!DOCTYPE html> | ||||
| <html lang="en"> | ||||
|   <head> | ||||
|     <meta charset="UTF-8" /> | ||||
|     <meta http-equiv="refresh" content="5; URL=https://discord.com/app" /> | ||||
|     <title>ArmCord</title> | ||||
|     <style> | ||||
|       :root { | ||||
|         font-family: Arial, Helvetica, sans-serif; | ||||
|       } | ||||
|       .titlebar { | ||||
|         font-family: Verdana, Geneva, Tahoma, sans-serif; | ||||
|         background-color: #2C2F33; | ||||
|       } | ||||
|       body { | ||||
|         color: white; | ||||
|       } | ||||
| 
 | ||||
|       h1 { | ||||
|         color: white; | ||||
|       } | ||||
|       h1 { | ||||
|         text-align: center; | ||||
|       } | ||||
|       span { | ||||
|         text-align: center; | ||||
|       } | ||||
|     </style> | ||||
|     <style> | ||||
|       body { | ||||
|         background-color: #2c2f33; | ||||
|       } | ||||
|     </style> | ||||
|   </head> | ||||
| 
 | ||||
|   <body> | ||||
|     <h1>ArmCord</h1> | ||||
|     <h1>Discord will load in few seconds.</h1> | ||||
|   </body> | ||||
| </html> | ||||
|  | @ -1,2 +0,0 @@ | |||
| npm install | ||||
| npm start | ||||
							
								
								
									
										48
									
								
								main.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										48
									
								
								main.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,48 @@ | |||
| // Modules to control application life and create native browser window
 | ||||
| const { app, BrowserWindow, session } = require('electron') | ||||
| const path = require('path') | ||||
| require("v8-compile-cache"); | ||||
| let mainWindow | ||||
| 
 | ||||
| function createWindow() { | ||||
|   mainWindow = new BrowserWindow({ | ||||
|     width: 800, | ||||
|     height: 600, | ||||
|     frame: false, | ||||
|     webPreferences: { | ||||
|       preload: path.join(__dirname, 'preload.js'), | ||||
|       enableRemoteModule: true, | ||||
|       nodeIntegration: false, | ||||
|     } | ||||
|   }) | ||||
| 
 | ||||
|   mainWindow.loadFile('index.html') | ||||
| 
 | ||||
|   // Open the DevTools.
 | ||||
|   // mainWindow.webContents.openDevTools()
 | ||||
| 
 | ||||
|   mainWindow.on('closed', () => { | ||||
|     mainWindow = null | ||||
|   }) | ||||
| } | ||||
| 
 | ||||
| // This method will be called when Electron has finished
 | ||||
| // initialization and is ready to create browser windows.
 | ||||
| // Some APIs can only be used after this event occurs.
 | ||||
| app.whenReady().then(() => { | ||||
|   createWindow() | ||||
|   session.defaultSession.loadExtension(`${require('electron').app.getAppPath()}/goosemod/`) | ||||
|    | ||||
|   app.on('activate', function () { | ||||
|     // On macOS it's common to re-create a window in the app when the
 | ||||
|     // dock icon is clicked and there are no other windows open.
 | ||||
|     if (BrowserWindow.getAllWindows().length === 0) createWindow() | ||||
|   }) | ||||
| }) | ||||
| 
 | ||||
| // Quit when all windows are closed, except on macOS. There, it's common
 | ||||
| // for applications and their menu bar to stay active until the user quits
 | ||||
| // explicitly with Cmd + Q.
 | ||||
| app.on('window-all-closed', function () { | ||||
|   if (process.platform !== 'darwin') app.quit() | ||||
| }) | ||||
							
								
								
									
										6048
									
								
								package-lock.json
									
										
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										6048
									
								
								package-lock.json
									
										
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										22
									
								
								package.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								package.json
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,22 @@ | |||
| { | ||||
|   "name": "custom-electron-titlebar-minimal-example", | ||||
|   "version": "1.0.0", | ||||
|   "description": "A minimal working example of how to use the custom-electron-titlebar module from AlexTorresSk.", | ||||
|   "main": "main.js", | ||||
|   "scripts": { | ||||
|     "start": "electron .", | ||||
|     "dist": "electron-builder", | ||||
|     "test": "echo \"Error: no test specified\" && exit 1" | ||||
|   }, | ||||
|   "author": "Tim L. Greller, Alex Torres", | ||||
|   "license": "MIT", | ||||
|   "dependencies": { | ||||
|     "custom-electron-titlebar": "3.2.5", | ||||
|     "v8-compile-cache": "^2.3.0" | ||||
|   }, | ||||
|   "devDependencies": { | ||||
|     "electron": "latest", | ||||
|     "electron-builder": "latest", | ||||
|     "electron-packager": "latest" | ||||
|   } | ||||
| } | ||||
							
								
								
									
										9
									
								
								preload.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								preload.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | |||
| const customTitlebar = require('custom-electron-titlebar') | ||||
| 
 | ||||
| window.addEventListener('DOMContentLoaded', () => { | ||||
|   new customTitlebar.Titlebar({ | ||||
|     backgroundColor: customTitlebar.Color.fromHex("#2C2F33"), | ||||
|   }); | ||||
| 
 | ||||
| 
 | ||||
| }) | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue