Improve framing tool usability

* Rename "Resize" to "Resize & Framing" from discoverability
* Add ColorPreview class for displaying a solid color
* Add border color preview
This commit is contained in:
Daniel Gao
2024-11-18 12:14:19 -05:00
parent 2458ba4a29
commit 57ef07f3f6
7 changed files with 165 additions and 7 deletions

View File

@@ -15,7 +15,7 @@
*
* You should have received a copy of the GNU General Public License
* along with RawTherapee. If not, see <https://www.gnu.org/licenses/>.
*
*
* 2024-2024 Daniel Gao <daniel.gao.work@gmail.com>
*/
@@ -27,6 +27,8 @@
#include <memory>
class ColorPreview;
class Framing final :
public ToolParamBlock,
public AdjusterListener,
@@ -106,6 +108,7 @@ private:
void setDimensions();
void updateFramingMethodGui();
void updateBorderSizeGui();
void updateBorderColorGui();
// Framing method
MyComboBoxText* framingMethod;
@@ -141,6 +144,7 @@ private:
Adjuster* redAdj;
Adjuster* greenAdj;
Adjuster* blueAdj;
ColorPreview* colorPreview;
IdleRegister idleRegister;
std::unique_ptr<AspectRatios> aspectRatioData;