diff --git a/Build/Build.csproj b/Build/Build.csproj index 8148d40..459bd84 100644 --- a/Build/Build.csproj +++ b/Build/Build.csproj @@ -1,7 +1,7 @@  Exe - net7.0 + net8.0 CS0649;CS0169 . diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b01f05..bcdfb86 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [1.1.0] / 2024-11-14 +- Update `ricaun.Revit.UI` to `0.7.1` +- Add missing `Orange` color +- Obsolete `RibbonImageThemeSelector` to use `ricaun.Revit.UI`. +- Rename Images to have `Light` in the name to enable the theme change to `Dark`. +- Add `Box` image files as resources. +- Use `tiff` files to enable high-quality icon. + ## [1.0.1] / 2024-01-11 - Add Revit version 2025 configuration @@ -11,5 +19,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - First Release [vNext]: ../../compare/1.0.0...HEAD +[1.1.0]: ../../compare/1.0.1...1.1.0 [1.0.1]: ../../compare/1.0.0...1.0.1 [1.0.0]: ../../compare/1.0.0 \ No newline at end of file diff --git a/README.md b/README.md index fc6602a..ec8d015 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,17 @@ # RevitAddin.Icon.Example -Example to swap the icons when theme change in Revit 2024 using the [Autodesk.Icon.Example](https://github.com/ricaun-io/Autodesk.Icon.Example) icons. - [![Revit 2024](https://img.shields.io/badge/Revit-2024+-blue.svg)](../..) [![Visual Studio 2022](https://img.shields.io/badge/Visual%20Studio-2022-blue)](../..) [![Nuke](https://img.shields.io/badge/Nuke-Build-blue)](https://nuke.build/) [![License MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Build](../../actions/workflows/Build.yml/badge.svg)](../../actions) +Example to swap the icons when theme change in Revit 2024/2025 using the [Autodesk.Icon.Example](https://github.com/ricaun-io/Autodesk.Icon.Example) icons. + +This project uses the [ricaun.Revit.UI](https://www.nuget.org/packages/ricaun.Revit.UI) library to handle the theme change and the selection of the icons in [high resolution](#high-resolution-icons) when a `.tiff` file is used. + +![Images-2x](assets/Images-2x.gif) + This project was generated by the [ricaun.AppLoader](https://ricaun.com/AppLoader/) Revit plugin. ## Installation @@ -16,14 +20,18 @@ This project was generated by the [ricaun.AppLoader](https://ricaun.com/AppLoade ## Video -Video in english with the creation of this project. +Video in English with the creation of this project. [![VideoIma1]][Video1] [![VideoIma2]][Video2] +### High resolution icons for Revit {#high-resolution-icons} + +[![VideoIma3]][Video3] + ## License -This project is [licensed](LICENSE) under the [MIT Licence](https://en.wikipedia.org/wiki/MIT_License). +This project is [licensed](LICENSE) under the [MIT License](https://en.wikipedia.org/wiki/MIT_License). --- @@ -33,4 +41,6 @@ Do you like this project? Please [star this project on GitHub](../../stargazers) [VideoIma1]: https://img.youtube.com/vi/Ggtz4-pVVYw/mqdefault.jpg [Video2]: https://youtu.be/q14EKVZaeqE [VideoIma2]: https://img.youtube.com/vi/q14EKVZaeqE/mqdefault.jpg +[Video3]: https://youtu.be/q__JuQDTH_k +[VideoIma3]: https://img.youtube.com/vi/q__JuQDTH_k/mqdefault.jpg diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Dark.ico new file mode 100644 index 0000000..885cd7f Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Dark.tiff new file mode 100644 index 0000000..cf55ed8 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Light.ico new file mode 100644 index 0000000..6c56bbf Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Light.tiff new file mode 100644 index 0000000..2c8535f Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Blue-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Dark.ico new file mode 100644 index 0000000..4e9755d Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Dark.tiff new file mode 100644 index 0000000..550e555 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Light.ico new file mode 100644 index 0000000..c047776 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Light.tiff new file mode 100644 index 0000000..995e0b9 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Brown-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Dark.ico new file mode 100644 index 0000000..fef6ef3 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Dark.tiff new file mode 100644 index 0000000..13cec2d Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Light.ico new file mode 100644 index 0000000..6fc4a11 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Light.tiff new file mode 100644 index 0000000..963e6f6 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Cyan-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Green-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Green-Dark.ico new file mode 100644 index 0000000..ea9e642 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Green-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Green-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Green-Dark.tiff new file mode 100644 index 0000000..e750913 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Green-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Green-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Green-Light.ico new file mode 100644 index 0000000..fc0f81d Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Green-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Green-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Green-Light.tiff new file mode 100644 index 0000000..9247ea5 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Green-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Dark.ico new file mode 100644 index 0000000..c41c70e Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Dark.tiff new file mode 100644 index 0000000..5dc4cd8 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Light.ico new file mode 100644 index 0000000..83bba94 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Light.tiff new file mode 100644 index 0000000..c0ef9e3 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Grey-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Dark.ico new file mode 100644 index 0000000..746a6ab Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Dark.tiff new file mode 100644 index 0000000..7ea4cd4 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Light.ico new file mode 100644 index 0000000..368b73e Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Light.tiff new file mode 100644 index 0000000..b349843 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Orange-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Dark.ico new file mode 100644 index 0000000..a75241a Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Dark.tiff new file mode 100644 index 0000000..4b4b030 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Light.ico new file mode 100644 index 0000000..4b70200 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Light.tiff new file mode 100644 index 0000000..7989aa2 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Pink-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Dark.ico new file mode 100644 index 0000000..4033e6b Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Dark.tiff new file mode 100644 index 0000000..71f7c49 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Light.ico new file mode 100644 index 0000000..2bd60df Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Light.tiff new file mode 100644 index 0000000..66291bf Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Purple-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Red-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Red-Dark.ico new file mode 100644 index 0000000..8047d91 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Red-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Red-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Red-Dark.tiff new file mode 100644 index 0000000..1246d76 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Red-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Red-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Red-Light.ico new file mode 100644 index 0000000..4602edf Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Red-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Red-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Red-Light.tiff new file mode 100644 index 0000000..66ff0cb Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Red-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Dark.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Dark.ico new file mode 100644 index 0000000..df1867b Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Dark.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Dark.tiff new file mode 100644 index 0000000..77cc6bd Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Light.ico b/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Light.ico new file mode 100644 index 0000000..a81938d Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Light.ico differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Light.tiff new file mode 100644 index 0000000..0de4a5b Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Box-Yellow-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Blue-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Blue-Dark.tiff new file mode 100644 index 0000000..afd12ae Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Blue-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Blue.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Blue-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Blue.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Blue-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Blue-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Blue-Light.tiff new file mode 100644 index 0000000..5b42380 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Blue-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Brown-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Brown-Dark.tiff new file mode 100644 index 0000000..0cacb59 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Brown-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Brown.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Brown-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Brown.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Brown-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Brown-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Brown-Light.tiff new file mode 100644 index 0000000..af40c11 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Brown-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Cyan-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Cyan-Dark.tiff new file mode 100644 index 0000000..0279da8 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Cyan-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Cyan.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Cyan-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Cyan.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Cyan-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Cyan-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Cyan-Light.tiff new file mode 100644 index 0000000..e2067d0 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Cyan-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Green-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Green-Dark.tiff new file mode 100644 index 0000000..44a1123 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Green-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Green.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Green-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Green.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Green-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Green-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Green-Light.tiff new file mode 100644 index 0000000..1fa6e9e Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Green-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Grey-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Grey-Dark.tiff new file mode 100644 index 0000000..12bc09f Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Grey-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Grey.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Grey-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Grey.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Grey-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Grey-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Grey-Light.tiff new file mode 100644 index 0000000..c99ad07 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Grey-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Orange-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Orange-Dark.tiff new file mode 100644 index 0000000..f098e1b Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Orange-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Orange.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Orange-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Orange.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Orange-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Orange-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Orange-Light.tiff new file mode 100644 index 0000000..9fb8c87 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Orange-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Pink-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Pink-Dark.tiff new file mode 100644 index 0000000..2659a37 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Pink-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Pink.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Pink-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Pink.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Pink-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Pink-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Pink-Light.tiff new file mode 100644 index 0000000..336ae9b Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Pink-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Purple-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Purple-Dark.tiff new file mode 100644 index 0000000..c02bb78 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Purple-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Purple.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Purple-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Purple.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Purple-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Purple-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Purple-Light.tiff new file mode 100644 index 0000000..29c7d4a Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Purple-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Red-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Red-Dark.tiff new file mode 100644 index 0000000..b4b61f8 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Red-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Red.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Red-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Red.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Red-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Red-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Red-Light.tiff new file mode 100644 index 0000000..f088cdb Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Red-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Yellow-Dark.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Yellow-Dark.tiff new file mode 100644 index 0000000..4ea5ac8 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Yellow-Dark.tiff differ diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Yellow.ico b/RevitAddin.Icon.Example/Resources/Images/Cube-Yellow-Light.ico similarity index 100% rename from RevitAddin.Icon.Example/Resources/Images/Cube-Yellow.ico rename to RevitAddin.Icon.Example/Resources/Images/Cube-Yellow-Light.ico diff --git a/RevitAddin.Icon.Example/Resources/Images/Cube-Yellow-Light.tiff b/RevitAddin.Icon.Example/Resources/Images/Cube-Yellow-Light.tiff new file mode 100644 index 0000000..f215bf2 Binary files /dev/null and b/RevitAddin.Icon.Example/Resources/Images/Cube-Yellow-Light.tiff differ diff --git a/RevitAddin.Icon.Example/Revit/App.cs b/RevitAddin.Icon.Example/Revit/App.cs index 207f563..3034d69 100644 --- a/RevitAddin.Icon.Example/Revit/App.cs +++ b/RevitAddin.Icon.Example/Revit/App.cs @@ -2,6 +2,7 @@ using Autodesk.Revit.UI; using ricaun.Revit.UI; using System.IO; +using System.Linq; namespace RevitAddin.Icon.Example.Revit { @@ -9,23 +10,43 @@ namespace RevitAddin.Icon.Example.Revit public class App : IExternalApplication { private static RibbonPanel ribbonPanel; - private static RibbonImageThemeSelector ribbonImageThemeSelector; public Result OnStartup(UIControlledApplication application) { - ribbonImageThemeSelector = new RibbonImageThemeSelector(application); - - var icons = new[] { "Grey", "Red", "Yellow", "Green", "Cyan", "Blue", "Purple", "Pink", "Brown" }; + var icons = new[] { "Grey", "Red", "Orange", "Yellow", "Green", "Cyan", "Blue", "Purple", "Pink", "Brown" }; ribbonPanel = application.CreatePanel("RevitAddin.Icon.Example"); + foreach (var icon in icons) { ribbonPanel.CreatePushButton(icon) - .SetLargeImage($"Resources/Images/Cube-{icon}.ico"); + .SetLargeImage($"Resources/Images/Cube-{icon}-Light.tiff"); } - ribbonImageThemeSelector.AddRibbonItem(ribbonPanel.GetRibbonItems()); + ribbonPanel.AddSlideOut(); - ribbonImageThemeSelector.UpdateImages(); + foreach (var icon in icons) + { + ribbonPanel.RowLargeStackedItems( + ribbonPanel.CreatePushButton(icon) + .SetLargeImage($"Resources/Images/Cube-{icon}-Light.tiff") + .SetShowText(), + ribbonPanel.CreatePushButton(icon) + .SetLargeImage($"Resources/Images/Box-{icon}-Light.tiff") + .SetShowText() + ); + } + + foreach (var icon in icons) + { + ribbonPanel.RowStackedItems( + ribbonPanel.CreatePushButton(icon) + .SetLargeImage($"Resources/Images/Cube-{icon}-Light.tiff") + .SetShowText(), + ribbonPanel.CreatePushButton(icon) + .SetLargeImage($"Resources/Images/Box-{icon}-Light.tiff") + .SetShowText() + ); + } return Result.Succeeded; } @@ -33,7 +54,6 @@ public Result OnStartup(UIControlledApplication application) public Result OnShutdown(UIControlledApplication application) { ribbonPanel?.Remove(); - ribbonImageThemeSelector?.Dispose(); return Result.Succeeded; } } diff --git a/RevitAddin.Icon.Example/Revit/RibbonImageThemeSelector.cs b/RevitAddin.Icon.Example/Revit/RibbonImageThemeSelector.cs index 7257412..c1714a8 100644 --- a/RevitAddin.Icon.Example/Revit/RibbonImageThemeSelector.cs +++ b/RevitAddin.Icon.Example/Revit/RibbonImageThemeSelector.cs @@ -6,6 +6,7 @@ namespace RevitAddin.Icon.Example.Revit { + [Obsolete("ricaun.Revit.UI have the same feature by default if the name of image have `light` and `dark`")] public class RibbonImageThemeSelector : IDisposable { private readonly UIControlledApplication application; diff --git a/RevitAddin.Icon.Example/RevitAddin.Icon.Example.csproj b/RevitAddin.Icon.Example/RevitAddin.Icon.Example.csproj index c57bc96..0a1d86c 100644 --- a/RevitAddin.Icon.Example/RevitAddin.Icon.Example.csproj +++ b/RevitAddin.Icon.Example/RevitAddin.Icon.Example.csproj @@ -64,7 +64,7 @@ 2025 - net7.0-windows + net8.0-windows @@ -108,7 +108,7 @@ RevitAddin.Icon.Example - 1.0.1 + 1.1.0 {A206D7F5-A69C-4011-BD5B-9E419B5DE41E} @@ -134,29 +134,6 @@ Copyright © $(CopyrightYears) $(Company) - - - - - - - - - - - - - - - - - - - - - - - @@ -168,26 +145,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + - + + + diff --git a/assets/Images-2x.gif b/assets/Images-2x.gif new file mode 100644 index 0000000..d810f66 Binary files /dev/null and b/assets/Images-2x.gif differ