-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Error and Warning states from tab state (#128)
Also remove them from CommonStateBitMask as they are no longer used.
- Loading branch information
Showing
2 changed files
with
4 additions
and
13 deletions.
There are no files selected for viewing
13 changes: 4 additions & 9 deletions
13
core/src/main/kotlin/org/jetbrains/jewel/CommonStateBitMask.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
package org.jetbrains.jewel | ||
|
||
internal object CommonStateBitMask { | ||
|
||
val Enabled = 1UL shl 0 | ||
val Focused = 1UL shl 1 | ||
val Hovered = 1UL shl 2 | ||
val Pressed = 1UL shl 3 | ||
val Active = 1UL shl 4 | ||
val Selected = 1UL shl 5 | ||
val Indeterminate = 1UL shl 6 | ||
|
||
@Deprecated("Shouldn't be part of the core state") | ||
val Error = 1UL shl 5 | ||
|
||
@Deprecated("Shouldn't be part of the core state") | ||
val Warning = 1UL shl 6 | ||
val Selected = 1UL shl 7 | ||
val Indeterminate = 1UL shl 8 | ||
|
||
const val FIRST_AVAILABLE_OFFSET = 9 | ||
const val FIRST_AVAILABLE_OFFSET = 7 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters