diff --git a/assets/icons/editor-dark/actions/48/space-global.png b/assets/icons/editor-dark/actions/48/space-global.png new file mode 100644 index 0000000..efe5175 Binary files /dev/null and b/assets/icons/editor-dark/actions/48/space-global.png differ diff --git a/assets/icons/editor-dark/actions/48/space-local.png b/assets/icons/editor-dark/actions/48/space-local.png new file mode 100644 index 0000000..2a8bdb7 Binary files /dev/null and b/assets/icons/editor-dark/actions/48/space-local.png differ diff --git a/assets/icons/editor/actions/48/space-global.png b/assets/icons/editor/actions/48/space-global.png new file mode 100644 index 0000000..a14a1ca Binary files /dev/null and b/assets/icons/editor/actions/48/space-global.png differ diff --git a/assets/icons/editor/actions/48/space-local.png b/assets/icons/editor/actions/48/space-local.png new file mode 100644 index 0000000..67cd970 Binary files /dev/null and b/assets/icons/editor/actions/48/space-local.png differ diff --git a/assets/src/localspace.svg b/assets/src/localspace.svg new file mode 100644 index 0000000..0f86b33 --- /dev/null +++ b/assets/src/localspace.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/src/worldspace.svg b/assets/src/worldspace.svg new file mode 100644 index 0000000..a5a731e --- /dev/null +++ b/assets/src/worldspace.svg @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/editor/mainwindow.cpp b/editor/mainwindow.cpp index 9befed7..96226b1 100644 --- a/editor/mainwindow.cpp +++ b/editor/mainwindow.cpp @@ -139,9 +139,11 @@ MainWindow::MainWindow(QWidget *parent) worldSpaceTransforms = !worldSpaceTransforms; updateToolbars(); if (worldSpaceTransforms) { - ui->actionToggleSpace->setText("W"); + ui->actionToggleSpace->setText("World"); + ui->actionToggleSpace->setIcon(QIcon::fromTheme("space-global")); } else { - ui->actionToggleSpace->setText("L"); + ui->actionToggleSpace->setText("Local"); + ui->actionToggleSpace->setIcon(QIcon::fromTheme("space-local")); } }); diff --git a/editor/mainwindow.ui b/editor/mainwindow.ui index e0a9e78..766da64 100644 --- a/editor/mainwindow.ui +++ b/editor/mainwindow.ui @@ -514,8 +514,11 @@ + + + - L + Local Switch between local and world space transformations