diff --git a/res/css/views/rooms/_AppsDrawer.scss b/res/css/views/rooms/_AppsDrawer.scss index 4a46063376a..8094062628c 100644 --- a/res/css/views/rooms/_AppsDrawer.scss +++ b/res/css/views/rooms/_AppsDrawer.scss @@ -56,9 +56,8 @@ limitations under the License. max-width: 960px; width: 50%; margin-right: 5px; - border: 1px solid $primary-hairline-color; - border-radius: 2px; - background-color: $dialog-background-bg-color; + border: 5px solid $widget-menu-bar-bg-color; + border-radius: 4px; } .mx_AppTile:last-child { @@ -71,8 +70,8 @@ limitations under the License. height: 100%; margin: 0; padding: 0; - border: 1px solid $primary-hairline-color; - border-radius: 2px; + border: 5px solid $widget-menu-bar-bg-color; + border-radius: 4px; } .mx_AppTile_mini { @@ -93,9 +92,7 @@ limitations under the License. .mx_AppTileMenuBar { margin: 0; - padding: 2px 10px; - border-bottom: 1px solid $primary-hairline-color; - font-size: 10px; + font-size: 12px; background-color: $widget-menu-bar-bg-color; display: flex; flex-direction: row; @@ -104,6 +101,10 @@ limitations under the License. cursor: pointer; } +.mx_AppTileMenuBar_expanded { + padding-bottom: 5px; +} + .mx_AppTileMenuBarTitle { display: flex; flex-direction: row; @@ -111,6 +112,10 @@ limitations under the License. pointer-events: none; } +.mx_AppTileMenuBarTitle > :last-child { + margin-left: 9px; +} + .mx_AppTileMenuBarWidgets { float: right; display: flex; @@ -118,6 +123,53 @@ limitations under the License. align-items: center; } +.mx_AppTileMenuBar_iconButton { + width: 12px; + height: 12px; + mask-repeat: no-repeat; + mask-position: 0 center; + mask-size: auto 12px; + background-color: $topleftmenu-color; + margin: 0 3px; +} + +.mx_AppTileMenuBar_iconButton.mx_AppTileMenuBar_iconButton_minimise { + mask-image: url('$(res)/img/feather-icons/widget/minimise.svg'); + background-color: $accent-color; +} + +.mx_AppTileMenuBar_iconButton.mx_AppTileMenuBar_iconButton_maximise { + mask-image: url('$(res)/img/feather-icons/widget/maximise.svg'); + background-color: $accent-color; +} + +.mx_AppTileMenuBar_iconButton.mx_AppTileMenuBar_iconButton_reload { + mask-image: url('$(res)/img/feather-icons/widget/refresh.svg'); + mask-size: 100%; +} + +.mx_AppTileMenuBar_iconButton.mx_AppTileMenuBar_iconButton_popout { + mask-image: url('$(res)/img/feather-icons/widget/external-link.svg'); +} + +.mx_AppTileMenuBar_iconButton.mx_AppTileMenuBar_iconButton_snapshot { + mask-image: url('$(res)/img/feather-icons/widget/camera.svg'); +} + +.mx_AppTileMenuBar_iconButton.mx_AppTileMenuBar_iconButton_edit { + mask-image: url('$(res)/img/feather-icons/widget/edit.svg'); +} + +.mx_AppTileMenuBar_iconButton.mx_AppTileMenuBar_iconButton_delete { + mask-image: url('$(res)/img/feather-icons/widget/bin.svg'); + background-color: $warning-color; +} + +.mx_AppTileMenuBar_iconButton.mx_AppTileMenuBar_iconButton_cancel { + mask-image: url('$(res)/img/feather-icons/widget/x-circle.svg'); +} + +/* delete ? */ .mx_AppTileMenuBarWidget { cursor: pointer; width: 10px; @@ -265,14 +317,11 @@ form.mx_Custom_Widget_Form div { } .mx_AppPermissionButton { - padding: 5px; + border: none; + padding: 5px 20px; border-radius: 5px; - color: $warning-color; - background-color: $primary-bg-color; -} - -.mx_AppPermissionButton:hover { - background-color: $primary-fg-color; + background-color: $button-bg-color; + color: $button-fg-color; cursor: pointer; } diff --git a/res/img/feather-icons/widget/bin.svg b/res/img/feather-icons/widget/bin.svg new file mode 100644 index 00000000000..7616d8931be --- /dev/null +++ b/res/img/feather-icons/widget/bin.svg @@ -0,0 +1,65 @@ + + diff --git a/res/img/feather-icons/widget/camera.svg b/res/img/feather-icons/widget/camera.svg new file mode 100644 index 00000000000..5502493068f --- /dev/null +++ b/res/img/feather-icons/widget/camera.svg @@ -0,0 +1,6 @@ + diff --git a/res/img/feather-icons/widget/edit.svg b/res/img/feather-icons/widget/edit.svg new file mode 100644 index 00000000000..749e83f9822 --- /dev/null +++ b/res/img/feather-icons/widget/edit.svg @@ -0,0 +1,6 @@ + diff --git a/res/img/feather-icons/widget/external-link.svg b/res/img/feather-icons/widget/external-link.svg new file mode 100644 index 00000000000..6732f298f4e --- /dev/null +++ b/res/img/feather-icons/widget/external-link.svg @@ -0,0 +1,5 @@ + diff --git a/res/img/feather-icons/widget/maximise.svg b/res/img/feather-icons/widget/maximise.svg new file mode 100644 index 00000000000..96185da1359 --- /dev/null +++ b/res/img/feather-icons/widget/maximise.svg @@ -0,0 +1,63 @@ + + diff --git a/res/img/feather-icons/widget/minimise.svg b/res/img/feather-icons/widget/minimise.svg new file mode 100644 index 00000000000..f05e9399600 --- /dev/null +++ b/res/img/feather-icons/widget/minimise.svg @@ -0,0 +1,65 @@ + + diff --git a/res/img/feather-icons/widget/refresh.svg b/res/img/feather-icons/widget/refresh.svg new file mode 100644 index 00000000000..0994bbdd521 --- /dev/null +++ b/res/img/feather-icons/widget/refresh.svg @@ -0,0 +1,6 @@ + diff --git a/res/img/feather-icons/widget/x-circle.svg b/res/img/feather-icons/widget/x-circle.svg new file mode 100644 index 00000000000..951407b39c1 --- /dev/null +++ b/res/img/feather-icons/widget/x-circle.svg @@ -0,0 +1,6 @@ + diff --git a/res/themes/dharma/css/_dharma.scss b/res/themes/dharma/css/_dharma.scss index 482b3c51cb4..e389cc944ce 100644 --- a/res/themes/dharma/css/_dharma.scss +++ b/res/themes/dharma/css/_dharma.scss @@ -172,7 +172,7 @@ $panel-divider-color: #dee1f3; // ******************** -$widget-menu-bar-bg-color: $tertiary-accent-color; +$widget-menu-bar-bg-color: $secondary-accent-color; // ******************** diff --git a/src/components/views/elements/AppPermission.js b/src/components/views/elements/AppPermission.js index 8f4a434df03..f31b02dd141 100644 --- a/src/components/views/elements/AppPermission.js +++ b/src/components/views/elements/AppPermission.js @@ -47,7 +47,7 @@ export default class AppPermission extends React.Component { return (