Change selected item color and make sure only one item is selected at a time
A blue selected item color fits better with the new color scheme than a green one. Only one item should be selected across all the displays we are showing.
This commit is contained in:
parent
662c995515
commit
90b7d9a7fa
@ -22,7 +22,7 @@ ITEM_DISPLAY_DESCRIPTION_COLOR.from_pixel(0xffffffbb);
|
||||
const ITEM_DISPLAY_BACKGROUND_COLOR = new Clutter.Color();
|
||||
ITEM_DISPLAY_BACKGROUND_COLOR.from_pixel(0x00000000);
|
||||
const ITEM_DISPLAY_SELECTED_BACKGROUND_COLOR = new Clutter.Color();
|
||||
ITEM_DISPLAY_SELECTED_BACKGROUND_COLOR.from_pixel(0x00ff0055);
|
||||
ITEM_DISPLAY_SELECTED_BACKGROUND_COLOR.from_pixel(0x4f6fadaa);
|
||||
const DISPLAY_CONTROL_SELECTED_COLOR = new Clutter.Color();
|
||||
DISPLAY_CONTROL_SELECTED_COLOR.from_pixel(0x112288ff);
|
||||
const PREVIEW_BOX_BACKGROUND_COLOR = new Clutter.Color();
|
||||
|
@ -364,6 +364,8 @@ Dash.prototype = {
|
||||
// no item in the doc display has the selection.
|
||||
me._docDisplay.unsetSelected();
|
||||
me._docDisplay.hidePreview();
|
||||
me._resultsDocDisplay.unsetSelected();
|
||||
me._resultsDocDisplay.hidePreview();
|
||||
});
|
||||
this._docDisplay.connect('selected', function(docDisplay) {
|
||||
// We allow clicking on any item to select it, so if an
|
||||
@ -371,6 +373,8 @@ Dash.prototype = {
|
||||
// no item in the app display has the selection.
|
||||
me._appDisplay.unsetSelected();
|
||||
me._appDisplay.hidePreview();
|
||||
me._resultsDocDisplay.unsetSelected();
|
||||
me._resultsDocDisplay.hidePreview();
|
||||
if (me._detailsPane.get_parent() == null) {
|
||||
me.actor.add_actor(me._detailsPane);
|
||||
me.emit('panes-displayed');
|
||||
@ -379,6 +383,10 @@ Dash.prototype = {
|
||||
me._detailsContent.append(me._docDisplay.selectedItemDetails, Big.BoxPackFlags.NONE);
|
||||
});
|
||||
this._resultsDocDisplay.connect('selected', function(resultsDocDisplay) {
|
||||
me._appDisplay.unsetSelected();
|
||||
me._appDisplay.hidePreview();
|
||||
me._docDisplay.unsetSelected();
|
||||
me._docDisplay.hidePreview();
|
||||
if (me._detailsPane.get_parent() == null) {
|
||||
me.actor.add_actor(me._detailsPane);
|
||||
me.emit('panes-displayed');
|
||||
|
Loading…
Reference in New Issue
Block a user