diff --git a/app/assets/css/launcher.css b/app/assets/css/launcher.css index b7736de..f657ecb 100644 --- a/app/assets/css/launcher.css +++ b/app/assets/css/launcher.css @@ -1,3 +1,6 @@ +/* Github Code Highlighting. */ +@import "../../../node_modules/github-syntax-dark/lib/github-dark.css"; + /******************************************************************************* * * * Fonts * @@ -1768,6 +1771,14 @@ input:checked + .toggleSwitchSlider:before { color: black; font-weight: bold; } +#settingsChangelogText .highlight { + background: rgba(0, 0, 0, 0.30); + user-select: initial; + padding: 5px 10px; +} +#settingsChangelogText .highlight pre { + margin: 0px; +} /* Container for the changelog button. */ #settingsChangelogActions { diff --git a/package-lock.json b/package-lock.json index c16d07e..88c08be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1183,6 +1183,11 @@ "assert-plus": "^1.0.0" } }, + "github-syntax-dark": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/github-syntax-dark/-/github-syntax-dark-0.5.0.tgz", + "integrity": "sha1-FwRlRf+qBB5YJFgAHflot+yRwuo=" + }, "glob": { "version": "7.1.2", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", diff --git a/package.json b/package.json index 6300515..cff0f63 100644 --- a/package.json +++ b/package.json @@ -35,6 +35,7 @@ "ejs-electron": "^2.0.3", "electron-is-dev": "^0.3.0", "electron-updater": "^2.23.3", + "github-syntax-dark": "^0.5.0", "jquery": "^3.3.1", "mkdirp": "^0.5.1", "request": "^2.87.0",