mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 23:39:07 +07:00
new class for default settings in image viewer
GitOrigin-RevId: 4cc624a600b1595dc06d1c5caaa8e5be39199df8
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dbe4965b89
commit
50dfd1c608
@@ -0,0 +1,20 @@
|
||||
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
package org.intellij.images.options
|
||||
|
||||
import com.intellij.openapi.util.registry.Registry
|
||||
|
||||
/**
|
||||
* @author Konstantin Bulenkov
|
||||
*/
|
||||
object DefaultImageEditorSettings {
|
||||
private const val SHOW_CHESSBOARD_KEY = "ide.images.show.chessboard"
|
||||
private const val SHOW_GRID_KEY = "ide.images.show.grid"
|
||||
|
||||
var showChessboard: Boolean
|
||||
get() = Registry.`is`(SHOW_CHESSBOARD_KEY)
|
||||
set(value) = Registry.get(SHOW_CHESSBOARD_KEY).setValue(value)
|
||||
|
||||
var showGrid: Boolean
|
||||
get() = Registry.`is`(SHOW_GRID_KEY)
|
||||
set(value) = Registry.get(SHOW_GRID_KEY).setValue(value)
|
||||
}
|
||||
Reference in New Issue
Block a user