Skip to content

Commit

Permalink
Seun themes (#77)
Browse files Browse the repository at this point in the history
* add themes

* initial theme support

* add svg icons and changelog style

* use tcss to keep formatting, will need a refactor

* wip; mvp but needs refactor in src repo

* icon override, implementing themes setup

* finalize themes (beta), add purple lightbulb

* finalize lightbulb menu v2

* update styling and tooltips

* fix spacing issues

* themes update beta
  • Loading branch information
ogewan authored Dec 14, 2022
1 parent 41d33f2 commit 44091a0
Show file tree
Hide file tree
Showing 43 changed files with 10,309 additions and 238 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"marquee.widgets.npm-stats.packageNames": [
"Flywire"
]
}
32 changes: 15 additions & 17 deletions config/webpack_helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
'use strict';

const path = require('path');
const originalWebpackHelpers = require('../third_party/neuroglancer/config/webpack_helpers');
const originalWebpackHelpers =
require('../third_party/neuroglancer/config/webpack_helpers');
const resolveReal = require('../third_party/neuroglancer/config/resolve_real');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CopyWebpackPlugin = require('copy-webpack-plugin');
Expand All @@ -41,18 +42,15 @@ function modifyViewerOptions(options) {
// neuroglancer.
options.frontendModules = [resolveReal(__dirname, '../src/main.ts')];

options.frontendPlugins = [new VueLoaderPlugin(),
new CopyWebpackPlugin([{
'from': 'images',
'to': 'images'
}]),
new CopyWebpackPlugin([{
'from': 'src/config.json',
'to': 'src/config.json'
}])
options.frontendPlugins = [
new VueLoaderPlugin(),
new CopyWebpackPlugin([{'from': 'images', 'to': 'images'}]),
new CopyWebpackPlugin(
[{'from': 'src/config.json', 'to': 'src/config.json'}])
];

options.htmlPlugin = new HtmlWebpackPlugin({template: resolveReal(__dirname, '../src/index.html')});
options.htmlPlugin = new HtmlWebpackPlugin(
{template: resolveReal(__dirname, '../src/index.html')});

options.resolveAliases = {
'vue': resolveReal(__dirname, '../node_modules/vue/dist/vue.esm.js'),
Expand All @@ -62,16 +60,16 @@ function modifyViewerOptions(options) {
}

exports.getViewerConfigFromEnv = function(options, env) {
const res = originalWebpackHelpers.getViewerConfigFromEnv(modifyViewerOptions(options), env);

const res = originalWebpackHelpers.getViewerConfigFromEnv(
modifyViewerOptions(options), env);

const frontEndModule = res[0].module;
const frontEndTsLoader = frontEndModule.rules[0].loader[0];
frontEndTsLoader.options['appendTsSuffixTo'] = [/\.vue$/];

frontEndModule.rules.push({
test: /\.vue$/,
loader: 'vue-loader'
});
frontEndModule.rules.push({test: /\.vue$/, loader: 'vue-loader'});
frontEndModule.rules.push({test: /\.txt$/, loader: 'raw-loader'});
frontEndModule.rules.push({test: /\.tcss$/, loader: 'raw-loader'});

return res;
};
Binary file added images/bulb_purple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions images/check_icon-16.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 73 additions & 0 deletions images/crystal-ball-icon-19.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions images/default/b-copy-icon-14.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 44091a0

Please sign in to comment.