Fix changing the shape painter colors in the properties panel/object editor (#7082)

This commit is contained in:
AlexandreS
2024-10-18 14:24:46 +02:00
committed by GitHub
parent 451d525b36
commit 1e55c359d8
4 changed files with 16 additions and 16 deletions

View File

@@ -32,13 +32,13 @@ class GD_EXTENSION_API ShapePainterObjectBase {
void SetOutlineOpacity(double val);
inline double GetOutlineOpacity() const { return outlineOpacity; };
void SetOutlineColor(const gd::String& color);
void SetOutlineColor(const gd::String& color) { outlineColor = color; };
const gd::String& GetOutlineColor() const { return outlineColor; };
void SetFillOpacity(double val);
inline double GetFillOpacity() const { return fillOpacity; };
void SetFillColor(const gd::String& color);
void SetFillColor(const gd::String& color) { fillColor = color; };
const gd::String& GetFillColor() const { return fillColor; };
inline void SetCoordinatesAbsolute() { absoluteCoordinates = true; }

View File

@@ -4,14 +4,14 @@ import SvgIcon from '@material-ui/core/SvgIcon';
export default React.memo(props => (
<SvgIcon {...props} width="24" height="24" viewBox="0 0 24 24" fill="none">
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M14.2303 11.7197C14.5232 12.0126 14.5232 12.4874 14.2303 12.7803L12.4803 14.5303C12.1874 14.8232 11.7126 14.8232 11.4197 14.5303L9.66967 12.7803C9.37677 12.4874 9.37677 12.0126 9.66967 11.7197C9.96256 11.4268 10.4374 11.4268 10.7303 11.7197L11.2 12.1893L11.2 6C11.2 5.58579 11.5358 5.25 11.95 5.25C12.3642 5.25 12.7 5.58579 12.7 6L12.7 12.1893L13.1697 11.7197C13.4626 11.4268 13.9374 11.4268 14.2303 11.7197Z"
fill="currentColor"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M3.25 18C3.25 17.5858 3.58579 17.25 4 17.25H20C20.4142 17.25 20.75 17.5858 20.75 18C20.75 18.4142 20.4142 18.75 20 18.75H4C3.58579 18.75 3.25 18.4142 3.25 18Z"
fill="currentColor"
/>

View File

@@ -4,20 +4,20 @@ import SvgIcon from '@material-ui/core/SvgIcon';
export default React.memo(props => (
<SvgIcon {...props} width="24" height="24" viewBox="0 0 24 24" fill="none">
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M14.2303 5.21967C14.5232 5.51256 14.5232 5.98744 14.2303 6.28033L12.4803 8.03033C12.1874 8.32322 11.7126 8.32322 11.4197 8.03033L9.66967 6.28033C9.37677 5.98744 9.37677 5.51256 9.66967 5.21967C9.96256 4.92678 10.4374 4.92678 10.7303 5.21967L11.2 5.68934V2C11.2 1.58579 11.5358 1.25 11.95 1.25C12.3642 1.25 12.7 1.58579 12.7 2V5.68934L13.1697 5.21967C13.4626 4.92678 13.9374 4.92678 14.2303 5.21967Z"
fill="currentColor"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M14.2303 18.2803C14.5232 17.9874 14.5232 17.5126 14.2303 17.2197L12.4803 15.4697C12.1874 15.1768 11.7126 15.1768 11.4197 15.4697L9.66967 17.2197C9.37677 17.5126 9.37677 17.9874 9.66967 18.2803C9.96256 18.5732 10.4374 18.5732 10.7303 18.2803L11.2 17.8107V21.5C11.2 21.9142 11.5358 22.25 11.95 22.25C12.3642 22.25 12.7 21.9142 12.7 21.5V17.8107L13.1697 18.2803C13.4626 18.5732 13.9374 18.5732 14.2303 18.2803Z"
fill="currentColor"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M3.25 12C3.25 11.5858 3.58579 11.25 4 11.25H20C20.4142 11.25 20.75 11.5858 20.75 12C20.75 12.4142 20.4142 12.75 20 12.75H4C3.58579 12.75 3.25 12.4142 3.25 12Z"
fill="currentColor"
/>

View File

@@ -4,14 +4,14 @@ import SvgIcon from '@material-ui/core/SvgIcon';
export default React.memo(props => (
<SvgIcon {...props} width="24" height="24" viewBox="0 0 24 24" fill="none">
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M14.2303 12.2803C13.9374 12.5732 13.4626 12.5732 13.1697 12.2803L12.7 11.8107L12.7 18C12.7 18.4142 12.3642 18.75 11.95 18.75C11.5358 18.75 11.2 18.4142 11.2 18V11.8107L10.7303 12.2803C10.4374 12.5732 9.96256 12.5732 9.66967 12.2803C9.37677 11.9874 9.37677 11.5126 9.66967 11.2197L11.4197 9.46967C11.7126 9.17678 12.1874 9.17678 12.4803 9.46967L14.2303 11.2197C14.5232 11.5126 14.5232 11.9874 14.2303 12.2803Z"
fill="currentColor"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
fillRule="evenodd"
clipRule="evenodd"
d="M3.25 6C3.25 5.58579 3.58579 5.25 4 5.25L20 5.25C20.4142 5.25 20.75 5.58579 20.75 6C20.75 6.41421 20.4142 6.75 20 6.75L4 6.75C3.58579 6.75 3.25 6.41421 3.25 6Z"
fill="currentColor"
/>