mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 02:10:08 +00:00
minor refactoring and cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
afe5a31d90
commit
d885072f80
@ -1114,6 +1114,9 @@ stretching in width... */
|
|||||||
.overlay-info:hover {
|
.overlay-info:hover {
|
||||||
.user-select(auto);
|
.user-select(auto);
|
||||||
}
|
}
|
||||||
|
.overlay-info .spacer {
|
||||||
|
opacity: 0.5,
|
||||||
|
}
|
||||||
.overlay-info .spacer~* {
|
.overlay-info .spacer~* {
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
@ -1743,6 +1746,9 @@ progress:not(value)::-webkit-progress-bar {
|
|||||||
.light.viewer .progress-bar {
|
.light.viewer .progress-bar {
|
||||||
color: silver;
|
color: silver;
|
||||||
}
|
}
|
||||||
|
.light.viewer .overlay-info .spacer {
|
||||||
|
opacity: 0.6,
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/*@import "theme-gray";*/
|
/*@import "theme-gray";*/
|
||||||
|
|||||||
@ -58,8 +58,11 @@ module.SortActions = actions.Actions({
|
|||||||
// the previous methods in chain...
|
// the previous methods in chain...
|
||||||
'sort-methods': {
|
'sort-methods': {
|
||||||
'none': '',
|
'none': '',
|
||||||
|
// NOTE: for when date resolution is not good enough this
|
||||||
|
// also takes into account file sequence number...
|
||||||
// NOTE: this is descending by default...
|
// NOTE: this is descending by default...
|
||||||
'Date': 'metadata.createDate birthtime keep-position reverse',
|
'Date': 'metadata.createDate birthtime name-sequence keep-position reverse',
|
||||||
|
'Date (simple)': 'metadata.createDate birthtime keep-position reverse',
|
||||||
'File date': 'birthtime keep-position reverse',
|
'File date': 'birthtime keep-position reverse',
|
||||||
'Name (XP-style)': 'name-leading-sequence name path keep-position',
|
'Name (XP-style)': 'name-leading-sequence name path keep-position',
|
||||||
'File sequence number': 'name-sequence name path keep-position',
|
'File sequence number': 'name-sequence name path keep-position',
|
||||||
|
|||||||
@ -424,9 +424,22 @@ var DialogsActions = actions.Actions({
|
|||||||
get uiElements(){
|
get uiElements(){
|
||||||
return this.actions.filter(this.isUIElement.bind(this)) },
|
return this.actions.filter(this.isUIElement.bind(this)) },
|
||||||
|
|
||||||
// get top overlay and overlay client...
|
// Get modal container...
|
||||||
get overlay(){
|
//
|
||||||
return overlay.getOverlay(this.viewer) },
|
// Protocol:
|
||||||
|
// - get the last modal widgets (CSS selector: .modal-widget)
|
||||||
|
// - return one of the following:
|
||||||
|
// .data('widget-controller')
|
||||||
|
// element
|
||||||
|
// null
|
||||||
|
get modal(){
|
||||||
|
var modal = this.ribbons.viewer
|
||||||
|
.find('modal-widget')
|
||||||
|
.last()
|
||||||
|
return modal.data('widget-controller')
|
||||||
|
|| (modal.length > 0 && modal)
|
||||||
|
|| null
|
||||||
|
},
|
||||||
|
|
||||||
// testers...
|
// testers...
|
||||||
isUIContainer: ['- Interface/',
|
isUIContainer: ['- Interface/',
|
||||||
@ -452,26 +465,14 @@ var DialogsActions = actions.Actions({
|
|||||||
o && o.focus()
|
o && o.focus()
|
||||||
})
|
})
|
||||||
})],
|
})],
|
||||||
// XXX should this be renamed to BottomDrawer???
|
|
||||||
Drawer: ['- Interface/',
|
Drawer: ['- Interface/',
|
||||||
makeDrawer('bottom')],
|
makeDrawer('bottom')],
|
||||||
|
|
||||||
// XXX not implemented yet...
|
|
||||||
TopDrawer: ['- Interface/',
|
|
||||||
makeDrawer('top')],
|
|
||||||
BottomDrawer: ['- Interface/',
|
BottomDrawer: ['- Interface/',
|
||||||
makeDrawer('bottom')],
|
makeDrawer('bottom')],
|
||||||
|
TopDrawer: ['- Interface/',
|
||||||
|
makeDrawer('top')],
|
||||||
|
|
||||||
RightDrawer: ['- Interface/',
|
|
||||||
makeUIContainer(function(dialog, options){
|
|
||||||
// XXX
|
|
||||||
console.error('Not yet implemented.')
|
|
||||||
})],
|
|
||||||
LeftDrawer: ['- Interface/',
|
|
||||||
makeUIContainer(function(dialog, options){
|
|
||||||
// XXX
|
|
||||||
console.error('Not yet implemented.')
|
|
||||||
})],
|
|
||||||
|
|
||||||
// like panel but drop down from mouse location or specified position
|
// like panel but drop down from mouse location or specified position
|
||||||
DropDown: ['- Interface/',
|
DropDown: ['- Interface/',
|
||||||
@ -491,6 +492,7 @@ var DialogsActions = actions.Actions({
|
|||||||
// XXX
|
// XXX
|
||||||
//console.error('Not yet implemented.')
|
//console.error('Not yet implemented.')
|
||||||
|
|
||||||
|
// minimal container...
|
||||||
var panel = {
|
var panel = {
|
||||||
client: dialog,
|
client: dialog,
|
||||||
dom: $('<div>')
|
dom: $('<div>')
|
||||||
|
|||||||
@ -19,7 +19,7 @@ var DrawerClassPrototype = {
|
|||||||
make: function(obj, client, options){
|
make: function(obj, client, options){
|
||||||
var that = this
|
var that = this
|
||||||
var overlay = $('<div>')
|
var overlay = $('<div>')
|
||||||
.addClass('drawer-widget ' + (options.direction || 'bottom'))
|
.addClass('drawer-widget modal-widget' + (options.direction || 'bottom'))
|
||||||
.append($('<div>')
|
.append($('<div>')
|
||||||
.addClass('content')
|
.addClass('content')
|
||||||
.click(function(){
|
.click(function(){
|
||||||
@ -41,6 +41,7 @@ var DrawerClassPrototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// XXX add a non-modal version...
|
||||||
var DrawerPrototype = {
|
var DrawerPrototype = {
|
||||||
dom: null,
|
dom: null,
|
||||||
client: null,
|
client: null,
|
||||||
|
|||||||
@ -19,7 +19,7 @@ var OverlayClassPrototype = {
|
|||||||
make: function(obj, client, options){
|
make: function(obj, client, options){
|
||||||
var that = this
|
var that = this
|
||||||
var overlay = $('<div>')
|
var overlay = $('<div>')
|
||||||
.addClass('overlay-widget')
|
.addClass('overlay-widget modal-widget')
|
||||||
.on(options.nonPropagatedEvents.join(' '), function(){
|
.on(options.nonPropagatedEvents.join(' '), function(){
|
||||||
event.stopPropagation()
|
event.stopPropagation()
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user