Skip to content

Commit

Permalink
Unify preview and camstand visibility toggles option by Contrail Co.,…
Browse files Browse the repository at this point in the history
…Ltd.
  • Loading branch information
shun-iwasawa committed Apr 21, 2023
1 parent f552399 commit 20630a9
Show file tree
Hide file tree
Showing 29 changed files with 557 additions and 145 deletions.
2 changes: 2 additions & 0 deletions stuff/config/qss/Blue/Blue.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,7 @@ XsheetViewer {
qproperty-XsheetPreviewButtonOnImage: url('../Default/imgs/white/x_prev_eye_on.svg');
qproperty-XsheetPreviewButtonBgOffColor: transparent;
qproperty-XsheetPreviewButtonOffImage: url('../Default/imgs/white/x_prev_eye_off.svg');
qproperty-XsheetUnifiedButtonTranspImage: url('../Default/imgs/white/x_prev_eye_transp.svg');
qproperty-XsheetCamstandButtonBgOnColor: #eb906b;
qproperty-XsheetCamstandButtonOnImage: url('../Default/imgs/white/x_table_view_on.svg');
qproperty-XsheetCamstandButtonTranspImage: url('../Default/imgs/white/x_table_view_transp.svg');
Expand All @@ -2385,6 +2386,7 @@ XsheetViewer {
qproperty-TimelinePreviewButtonOnImage: url('../Default/imgs/white/preview_small.svg');
qproperty-TimelinePreviewButtonBgOffColor: #414345;
qproperty-TimelinePreviewButtonOffImage: url('none');
qproperty-TimelineUnifiedButtonTranspImage: url('../Default/imgs/white/preview_trans_small.svg');
qproperty-TimelineCamstandButtonBgOnColor: #414345;
qproperty-TimelineCamstandButtonOnImage: url('../Default/imgs/white/table_small.svg');
qproperty-TimelineCamstandButtonTranspImage: url('../Default/imgs/white/trans_small.svg');
Expand Down
2 changes: 2 additions & 0 deletions stuff/config/qss/Dark/Dark.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,7 @@ XsheetViewer {
qproperty-XsheetPreviewButtonOnImage: url('../Default/imgs/white/x_prev_eye_on.svg');
qproperty-XsheetPreviewButtonBgOffColor: transparent;
qproperty-XsheetPreviewButtonOffImage: url('../Default/imgs/white/x_prev_eye_off.svg');
qproperty-XsheetUnifiedButtonTranspImage: url('../Default/imgs/white/x_prev_eye_transp.svg');
qproperty-XsheetCamstandButtonBgOnColor: #eb906b;
qproperty-XsheetCamstandButtonOnImage: url('../Default/imgs/white/x_table_view_on.svg');
qproperty-XsheetCamstandButtonTranspImage: url('../Default/imgs/white/x_table_view_transp.svg');
Expand All @@ -2385,6 +2386,7 @@ XsheetViewer {
qproperty-TimelinePreviewButtonOnImage: url('../Default/imgs/white/preview_small.svg');
qproperty-TimelinePreviewButtonBgOffColor: #303030;
qproperty-TimelinePreviewButtonOffImage: url('none');
qproperty-TimelineUnifiedButtonTranspImage: url('../Default/imgs/white/preview_trans_small.svg');
qproperty-TimelineCamstandButtonBgOnColor: #303030;
qproperty-TimelineCamstandButtonOnImage: url('../Default/imgs/white/table_small.svg');
qproperty-TimelineCamstandButtonTranspImage: url('../Default/imgs/white/trans_small.svg');
Expand Down
2 changes: 2 additions & 0 deletions stuff/config/qss/Default/Default.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,7 @@ XsheetViewer {
qproperty-XsheetPreviewButtonOnImage: url('imgs/white/x_prev_eye_on.svg');
qproperty-XsheetPreviewButtonBgOffColor: transparent;
qproperty-XsheetPreviewButtonOffImage: url('imgs/white/x_prev_eye_off.svg');
qproperty-XsheetUnifiedButtonTranspImage: url('imgs/white/x_prev_eye_transp.svg');
qproperty-XsheetCamstandButtonBgOnColor: #eb906b;
qproperty-XsheetCamstandButtonOnImage: url('imgs/white/x_table_view_on.svg');
qproperty-XsheetCamstandButtonTranspImage: url('imgs/white/x_table_view_transp.svg');
Expand All @@ -2385,6 +2386,7 @@ XsheetViewer {
qproperty-TimelinePreviewButtonOnImage: url('imgs/white/preview_small.svg');
qproperty-TimelinePreviewButtonBgOffColor: #484848;
qproperty-TimelinePreviewButtonOffImage: url('none');
qproperty-TimelineUnifiedButtonTranspImage: url('imgs/white/preview_trans_small.svg');
qproperty-TimelineCamstandButtonBgOnColor: #484848;
qproperty-TimelineCamstandButtonOnImage: url('imgs/white/table_small.svg');
qproperty-TimelineCamstandButtonTranspImage: url('imgs/white/trans_small.svg');
Expand Down
46 changes: 46 additions & 0 deletions stuff/config/qss/Default/imgs/black/preview_trans_small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions stuff/config/qss/Default/imgs/black/x_prev_eye_transp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions stuff/config/qss/Default/imgs/white/preview_trans_small.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
70 changes: 70 additions & 0 deletions stuff/config/qss/Default/imgs/white/x_prev_eye_transp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions stuff/config/qss/Default/less/layouts/xsheet.less
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ XsheetViewer {
qproperty-XsheetPreviewButtonBgOffColor: transparent;
qproperty-XsheetPreviewButtonOffImage: url('@{img-url}/x_prev_eye_off.svg');

qproperty-XsheetUnifiedButtonTranspImage: url('@{img-url}/x_prev_eye_transp.svg');

qproperty-XsheetCamstandButtonBgOnColor: @xsheet-CamstandButtonBgOn-color;
qproperty-XsheetCamstandButtonOnImage: url('@{img-url}/x_table_view_on.svg');
qproperty-XsheetCamstandButtonTranspImage: url('@{img-url}/x_table_view_transp.svg');
Expand All @@ -188,6 +190,8 @@ XsheetViewer {
qproperty-TimelinePreviewButtonOnImage: url('@{img-url}/preview_small.svg');
qproperty-TimelinePreviewButtonBgOffColor: @bg;
qproperty-TimelinePreviewButtonOffImage: url('none');

qproperty-TimelineUnifiedButtonTranspImage: url('@{img-url}/preview_trans_small.svg');

qproperty-TimelineCamstandButtonBgOnColor: @bg;
qproperty-TimelineCamstandButtonOnImage: url('@{img-url}/table_small.svg');
Expand Down
2 changes: 2 additions & 0 deletions stuff/config/qss/Light/Light.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,7 @@ XsheetViewer {
qproperty-XsheetPreviewButtonOnImage: url('../Default/imgs/black/x_prev_eye_on.svg');
qproperty-XsheetPreviewButtonBgOffColor: transparent;
qproperty-XsheetPreviewButtonOffImage: url('../Default/imgs/black/x_prev_eye_off.svg');
qproperty-XsheetUnifiedButtonTranspImage: url('../Default/imgs/black/x_prev_eye_transp.svg');
qproperty-XsheetCamstandButtonBgOnColor: #ffa683;
qproperty-XsheetCamstandButtonOnImage: url('../Default/imgs/black/x_table_view_on.svg');
qproperty-XsheetCamstandButtonTranspImage: url('../Default/imgs/black/x_table_view_transp.svg');
Expand All @@ -2385,6 +2386,7 @@ XsheetViewer {
qproperty-TimelinePreviewButtonOnImage: url('../Default/imgs/black/preview_small.svg');
qproperty-TimelinePreviewButtonBgOffColor: #DBDBDB;
qproperty-TimelinePreviewButtonOffImage: url('none');
qproperty-TimelineUnifiedButtonTranspImage: url('../Default/imgs/black/preview_trans_small.svg');
qproperty-TimelineCamstandButtonBgOnColor: #DBDBDB;
qproperty-TimelineCamstandButtonOnImage: url('../Default/imgs/black/table_small.svg');
qproperty-TimelineCamstandButtonTranspImage: url('../Default/imgs/black/trans_small.svg');
Expand Down
2 changes: 2 additions & 0 deletions stuff/config/qss/Neutral/Neutral.qss
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,7 @@ XsheetViewer {
qproperty-XsheetPreviewButtonOnImage: url('../Default/imgs/black/x_prev_eye_on.svg');
qproperty-XsheetPreviewButtonBgOffColor: transparent;
qproperty-XsheetPreviewButtonOffImage: url('../Default/imgs/black/x_prev_eye_off.svg');
qproperty-XsheetUnifiedButtonTranspImage: url('../Default/imgs/black/x_prev_eye_transp.svg');
qproperty-XsheetCamstandButtonBgOnColor: #eb906b;
qproperty-XsheetCamstandButtonOnImage: url('../Default/imgs/black/x_table_view_on.svg');
qproperty-XsheetCamstandButtonTranspImage: url('../Default/imgs/black/x_table_view_transp.svg');
Expand All @@ -2385,6 +2386,7 @@ XsheetViewer {
qproperty-TimelinePreviewButtonOnImage: url('../Default/imgs/black/preview_small.svg');
qproperty-TimelinePreviewButtonBgOffColor: #808080;
qproperty-TimelinePreviewButtonOffImage: url('none');
qproperty-TimelineUnifiedButtonTranspImage: url('../Default/imgs/black/preview_trans_small.svg');
qproperty-TimelineCamstandButtonBgOnColor: #808080;
qproperty-TimelineCamstandButtonOnImage: url('../Default/imgs/black/table_small.svg');
qproperty-TimelineCamstandButtonTranspImage: url('../Default/imgs/black/trans_small.svg');
Expand Down
3 changes: 3 additions & 0 deletions toonz/sources/include/orientation.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ enum class PredefinedRect {
PREVIEW_LAYER_AREA, //! clickable area larger than preview icon, containing
//! it
PREVIEW_LAYER,
UNIFIEDVIEW_LAYER_AREA, //! used when unifying the preview and the camstand
//! toggles
UNIFIEDVIEW_LAYER,
LOCK_AREA, //! clickable area larger than lock icon, containing it
LOCK, //! the lock icon itself
CAMERA_LOCK_AREA, //! lock area for the camera column
Expand Down
3 changes: 3 additions & 0 deletions toonz/sources/include/toonz/preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,9 @@ class DVAPI Preferences final : public QObject // singleton
bool isShowColumnNumbersEnabled() const {
return getBoolValue(showColumnNumbers);
}
bool isUnifyColumnVisibilityTogglesEnabled() const {
return getBoolValue(unifyColumnVisibilityToggles);
}
bool isParentColorsInXsheetColumnEnabled() const {
return getBoolValue(parentColorsInXsheetColumn);
}
Expand Down
1 change: 1 addition & 0 deletions toonz/sources/include/toonz/preferencesitemids.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ enum PreferencesItemId {
showXSheetToolbar,
expandFunctionHeader,
showColumnNumbers,
unifyColumnVisibilityToggles,
parentColorsInXsheetColumn,
highlightLineEverySecond,
syncLevelRenumberWithXsheet,
Expand Down
Loading

0 comments on commit 20630a9

Please sign in to comment.