summaryrefslogtreecommitdiff
path: root/src/config
diff options
context:
space:
mode:
authorozwaldorf <self@ossian.dev>2023-02-01 16:06:01 -0500
committerGitHub <noreply@github.com>2023-02-01 21:06:01 +0000
commit32d56fec977b109aeecb06288a1b45cfe6b83117 (patch)
tree3ac9a6c1f096277cab5675fe47658b6317b45947 /src/config
parent1a41f729a38a57c7e925237efdeeaad1df14020e (diff)
feat: border angle animations (#1469)
Co-authored-by: vaxerski <43317083+vaxerski@users.noreply.github.com>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/ConfigDataValues.hpp7
-rw-r--r--src/config/ConfigManager.cpp2
-rw-r--r--src/config/defaultConfig.hpp1
3 files changed, 7 insertions, 3 deletions
diff --git a/src/config/ConfigDataValues.hpp b/src/config/ConfigDataValues.hpp
index c7f7fff8..c8195bbf 100644
--- a/src/config/ConfigDataValues.hpp
+++ b/src/config/ConfigDataValues.hpp
@@ -2,7 +2,8 @@
#include "../defines.hpp"
#include <vector>
-enum eConfigValueDataTypes {
+enum eConfigValueDataTypes
+{
CVD_TYPE_INVALID = -1,
CVD_TYPE_GRADIENT = 0
};
@@ -38,7 +39,7 @@ class CGradientValueData : public ICustomConfigValueData {
float m_fAngle = 0;
bool operator==(const CGradientValueData& other) {
- if (other.m_vColors.size() != m_vColors.size() || m_fAngle != other.m_fAngle)
+ if (other.m_vColors.size() != m_vColors.size() || m_fAngle != other.m_fAngle)
return false;
for (size_t i = 0; i < m_vColors.size(); ++i)
@@ -47,4 +48,4 @@ class CGradientValueData : public ICustomConfigValueData {
return true;
}
-}; \ No newline at end of file
+};
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index a59a788f..07ea3d03 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -220,6 +220,7 @@ void CConfigManager::setDefaultAnimationVars() {
INITANIMCFG("windows");
INITANIMCFG("fade");
INITANIMCFG("border");
+ INITANIMCFG("borderangle");
INITANIMCFG("workspaces");
// windows
@@ -246,6 +247,7 @@ void CConfigManager::setDefaultAnimationVars() {
CREATEANIMCFG("windows", "global");
CREATEANIMCFG("fade", "global");
CREATEANIMCFG("border", "global");
+ CREATEANIMCFG("borderangle", "global");
CREATEANIMCFG("workspaces", "global");
CREATEANIMCFG("windowsIn", "windows");
diff --git a/src/config/defaultConfig.hpp b/src/config/defaultConfig.hpp
index fd77b74b..df043149 100644
--- a/src/config/defaultConfig.hpp
+++ b/src/config/defaultConfig.hpp
@@ -82,6 +82,7 @@ animations {
animation = windows, 1, 7, myBezier
animation = windowsOut, 1, 7, default, popin 80%
animation = border, 1, 10, default
+ animation = borderangle, 1, 8, default
animation = fade, 1, 7, default
animation = workspaces, 1, 6, default
}