diff --git a/coreplugins/dronedb/plugin.py b/coreplugins/dronedb/plugin.py index 217a685c..bc8c009a 100644 --- a/coreplugins/dronedb/plugin.py +++ b/coreplugins/dronedb/plugin.py @@ -30,13 +30,13 @@ class Plugin(PluginBase): super().__init__(*args, **kwargs) def main_menu(self): - return [Menu("DroneDB", self.public_url(""), "fas fa-cloud fa-fw")] + return [Menu("DroneDB", self.public_url(""), "ddb-icon fa-fw")] def include_js_files(self): return ["load_buttons.js"] def include_css_files(self): - return ["build/ImportView.css"] + return ["build/ImportView.css", "style.css"] def build_jsx_components(self): return ["ImportView.jsx", "ShareButton.jsx"] diff --git a/coreplugins/dronedb/public/ShareButton.jsx b/coreplugins/dronedb/public/ShareButton.jsx index e3f3742f..7a6cab58 100644 --- a/coreplugins/dronedb/public/ShareButton.jsx +++ b/coreplugins/dronedb/public/ShareButton.jsx @@ -11,7 +11,7 @@ const STATE_DONE = 3; const ICON_CLASS_MAPPER = [ // Idle - 'fas fa-cloud fa-fw', + 'ddb-icon fa-fw', // Running 'fa fa-circle-notch fa-spin fa-fw', // Error diff --git a/coreplugins/dronedb/public/components/SelectUrlDialog.scss b/coreplugins/dronedb/public/components/SelectUrlDialog.scss index 018de2a6..e8ac49f1 100644 --- a/coreplugins/dronedb/public/components/SelectUrlDialog.scss +++ b/coreplugins/dronedb/public/components/SelectUrlDialog.scss @@ -12,10 +12,6 @@ padding: 20px; } -.basic-single { - -} - .select-row { display: flex; width: 100%; diff --git a/coreplugins/dronedb/public/fonts/ddb.eot b/coreplugins/dronedb/public/fonts/ddb.eot new file mode 100755 index 00000000..1077a69b Binary files /dev/null and b/coreplugins/dronedb/public/fonts/ddb.eot differ diff --git a/coreplugins/dronedb/public/fonts/ddb.svg b/coreplugins/dronedb/public/fonts/ddb.svg new file mode 100755 index 00000000..6c79122d --- /dev/null +++ b/coreplugins/dronedb/public/fonts/ddb.svg @@ -0,0 +1,12 @@ + + + +Copyright (C) 2022 by original authors @ fontello.com + + + + + + + + diff --git a/coreplugins/dronedb/public/fonts/ddb.ttf b/coreplugins/dronedb/public/fonts/ddb.ttf new file mode 100755 index 00000000..25caaa24 Binary files /dev/null and b/coreplugins/dronedb/public/fonts/ddb.ttf differ diff --git a/coreplugins/dronedb/public/fonts/ddb.woff b/coreplugins/dronedb/public/fonts/ddb.woff new file mode 100755 index 00000000..187ce696 Binary files /dev/null and b/coreplugins/dronedb/public/fonts/ddb.woff differ diff --git a/coreplugins/dronedb/public/fonts/ddb.woff2 b/coreplugins/dronedb/public/fonts/ddb.woff2 new file mode 100755 index 00000000..53dff30f Binary files /dev/null and b/coreplugins/dronedb/public/fonts/ddb.woff2 differ diff --git a/coreplugins/dronedb/public/style.css b/coreplugins/dronedb/public/style.css new file mode 100644 index 00000000..e8a983da --- /dev/null +++ b/coreplugins/dronedb/public/style.css @@ -0,0 +1,43 @@ +@font-face { + font-family: 'ddbfont'; + src: url('fonts/ddb.eot?16744445'); + src: url('fonts/ddb.eot?16744445#iefix') format('embedded-opentype'), + url('fonts/ddb.woff2?16744445') format('woff2'), + url('fonts/ddb.woff?16744445') format('woff'), + url('fonts/ddb.ttf?16744445') format('truetype'), + url('fonts/ddb.svg?16744445#ddb') format('svg'); + font-weight: normal; + font-style: normal; + } + + .ddb-icon:before { + font-family: "ddbfont"; + font-style: normal; + font-weight: normal; + speak: never; + + display: inline-block; + text-decoration: inherit; + width: 1em; + margin-right: .2em; + text-align: center; + /* opacity: .8; */ + + /* For safety - reset parent styles, that can break glyph codes*/ + font-variant: normal; + text-transform: none; + + /* fix buttons height, for twitter bootstrap */ + line-height: 1em; + + /* Font smoothing. That was taken from TWBS */ + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + + /* Uncomment for 3D effect */ + text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); + + content: '\e803'; + } + + \ No newline at end of file