@quenty/guivisiblemanager 3.3.0 → 3.4.0-canary.237.7ab2e27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,20 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.4.0-canary.237.7ab2e27.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/guivisiblemanager@3.3.0...@quenty/guivisiblemanager@3.4.0-canary.237.7ab2e27.0) (2021-12-22)
7
+
8
+
9
+ * feat!: Remove GuiVisibleManager:SetPreferredTheme() support ([4f8bcda](https://github.com/Quenty/NevermoreEngine/commit/4f8bcda59cac6d13d62123ceda15678076cb07f0))
10
+
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ * GuiVisibleManager:SetPreferredTheme() will no longer exist, and :SetPreferredTheme() will not be automatically called on new instances.
15
+
16
+
17
+
18
+
19
+
6
20
  # [3.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/guivisiblemanager@3.2.0...@quenty/guivisiblemanager@3.3.0) (2021-12-18)
7
21
 
8
22
  **Note:** Version bump only for package @quenty/guivisiblemanager
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/guivisiblemanager",
3
- "version": "3.3.0",
3
+ "version": "3.4.0-canary.237.7ab2e27.0",
4
4
  "description": "Help manage the visibility of GUIs while only constructing the Gui while visible",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,13 +25,13 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/baseobject": "^3.2.0",
29
- "@quenty/cancellabledelay": "^2.1.0",
30
- "@quenty/loader": "^3.1.1",
31
- "@quenty/maid": "^2.0.1"
28
+ "@quenty/baseobject": "3.2.0",
29
+ "@quenty/cancellabledelay": "2.1.0",
30
+ "@quenty/loader": "3.1.1",
31
+ "@quenty/maid": "2.0.1"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "6eb398e9fb81191f0815885f807ab0cb3bb9bad1"
36
+ "gitHead": "7ab2e274b52bf099dfed479f663d1aeec637ba49"
37
37
  }
@@ -25,10 +25,6 @@ function GuiVisibleManager.new(promiseNewPane, maxHideTime)
25
25
  self._paneVisible.Value = false
26
26
  self._maid:GiveTask(self._paneVisible)
27
27
 
28
- self._theme = Instance.new("StringValue")
29
- self._theme.Value = "Light"
30
- self._maid:GiveTask(self._theme)
31
-
32
28
  self._showHandles = {}
33
29
 
34
30
  self._maid:GiveTask(self._paneVisible.Changed:Connect(function()
@@ -64,12 +60,6 @@ function GuiVisibleManager:BindToBoolValue(boolValue)
64
60
  end
65
61
  end
66
62
 
67
- function GuiVisibleManager:SetPreferredTheme(theme)
68
- assert(theme == "Light" or theme == "Dark", "Bad theme")
69
-
70
- self._theme.Value = theme
71
- end
72
-
73
63
  function GuiVisibleManager:CreateShowHandle()
74
64
  assert(self._showHandles, "Not initialized yet")
75
65
 
@@ -126,14 +116,6 @@ function GuiVisibleManager:_handleNewPane(maid, pane)
126
116
 
127
117
  maid:GiveTask(pane)
128
118
 
129
- if pane.SetPreferredTheme then
130
- -- Theming
131
- pane:SetPreferredTheme(self._theme.Value)
132
- maid:GiveTask(self._theme.Changed:Connect(function()
133
- pane:SetPreferredTheme(self._theme.Value)
134
- end))
135
- end
136
-
137
119
  local function updateVisible()
138
120
  if self._paneVisible.Value then
139
121
  pane:Show()